Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating an instance of an object ... Pin
Charlie Williams7-Feb-04 8:26
Charlie Williams7-Feb-04 8:26 
GeneralRe: Creating an instance of an object ... Pin
John Kuhn7-Feb-04 8:34
John Kuhn7-Feb-04 8:34 
GeneralRe: Creating an instance of an object ... Pin
Heath Stewart7-Feb-04 19:23
protectorHeath Stewart7-Feb-04 19:23 
GeneralRe: Creating an instance of an object ... Pin
Andres Coder7-Feb-04 19:48
Andres Coder7-Feb-04 19:48 
GeneralRe: Creating an instance of an object ... Pin
Heath Stewart7-Feb-04 19:51
protectorHeath Stewart7-Feb-04 19:51 
GeneralDynamic attributes in datagrid. Pin
Andrlage7-Feb-04 3:05
Andrlage7-Feb-04 3:05 
GeneralRe: Dynamic attributes in datagrid. Pin
Mazdak7-Feb-04 3:46
Mazdak7-Feb-04 3:46 
GeneralRe: Dynamic attributes in datagrid. Pin
Bill Dean7-Feb-04 4:01
Bill Dean7-Feb-04 4:01 
Hi Andla,

The FindControl method returns a generic Control, so you need to caste it to get at the DataGrid's Attribute collection.

So I'd try something like:
<br />
DataGrid DGTmp=(DataGrid)FindControl("DataGrid1");<br />


Then you can manipulate the attributes like this:
<br />
DGTmp.Attributes["Border"]="1";<br />


Notice the use of "Border" rather than "BorderWidth". The Attribute property is written directly to the client, so it does not map exactly to the attributes listed in the tag in the aspx file.

Someone smarter than me will have to explain (to both of use) why this is so...

Hope this helps,
Bill
GeneralHelp with MSComm serial port communications Pin
maria_p6-Feb-04 19:37
maria_p6-Feb-04 19:37 
GeneralConversion From VB Pin
Josh Koppang6-Feb-04 17:42
Josh Koppang6-Feb-04 17:42 
GeneralRe: Conversion From VB Pin
Bill Dean6-Feb-04 18:12
Bill Dean6-Feb-04 18:12 
Questionis their any way to ..................? Pin
6-Feb-04 13:27
suss6-Feb-04 13:27 
AnswerRe: is their any way to ..................? Pin
Colin Angus Mackay7-Feb-04 3:05
Colin Angus Mackay7-Feb-04 3:05 
AnswerRe: is their any way to ..................? Pin
Heath Stewart7-Feb-04 19:28
protectorHeath Stewart7-Feb-04 19:28 
AnswerRe: is their any way to ..................? Pin
13-Feb-04 6:39
suss13-Feb-04 6:39 
GeneralIncrementally create user controls Pin
Andrlage6-Feb-04 12:16
Andrlage6-Feb-04 12:16 
GeneralRe: Incrementally create user controls Pin
Colin Angus Mackay7-Feb-04 3:13
Colin Angus Mackay7-Feb-04 3:13 
GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:41
Andres Coder7-Feb-04 7:41 
GeneralRe: Incrementally create user controls Pin
Andres Coder7-Feb-04 7:42
Andres Coder7-Feb-04 7:42 
Generalenter Pin
heba_zien6-Feb-04 11:14
heba_zien6-Feb-04 11:14 
GeneralRe: enter Pin
Bill Dean6-Feb-04 17:01
Bill Dean6-Feb-04 17:01 
QuestionIs implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous6-Feb-04 10:34
Anonymous6-Feb-04 10:34 
AnswerRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart7-Feb-04 19:32
protectorHeath Stewart7-Feb-04 19:32 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Anonymous7-Feb-04 22:38
Anonymous7-Feb-04 22:38 
GeneralRe: Is implementing WH_KEYBOARD hooking in a .NET library a good idea? Pin
Heath Stewart8-Feb-04 5:41
protectorHeath Stewart8-Feb-04 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.