Click here to Skip to main content
15,915,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to make panel scroll when scrollbar is moved? Pin
rul3038-Feb-04 7:02
rul3038-Feb-04 7:02 
GeneralRe: How to make panel scroll when scrollbar is moved? Pin
Heath Stewart8-Feb-04 7:07
protectorHeath Stewart8-Feb-04 7:07 
GeneralGUID Conversion Pin
Tristan Rhodes7-Feb-04 8:34
Tristan Rhodes7-Feb-04 8:34 
GeneralRe: GUID Conversion Pin
Heath Stewart7-Feb-04 19:19
protectorHeath Stewart7-Feb-04 19:19 
GeneralRe: GUID Conversion Pin
Tristan Rhodes7-Feb-04 21:08
Tristan Rhodes7-Feb-04 21:08 
GeneralRe: GUID Conversion Pin
leppie7-Feb-04 23:23
leppie7-Feb-04 23:23 
GeneralRe: GUID Conversion Pin
Heath Stewart8-Feb-04 5:32
protectorHeath Stewart8-Feb-04 5:32 
GeneralRe: GUID Conversion Pin
Tristan Rhodes8-Feb-04 8:36
Tristan Rhodes8-Feb-04 8:36 
GeneralRe: GUID Conversion Pin
Nick Parker8-Feb-04 5:45
protectorNick Parker8-Feb-04 5:45 
GeneralCreating an instance of an object ... Pin
Andres Coder7-Feb-04 7:36
Andres Coder7-Feb-04 7:36 
GeneralRe: Creating an instance of an object ... Pin
Nick Parker7-Feb-04 7:56
protectorNick Parker7-Feb-04 7:56 
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 

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.