Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckBox in a DataGrid
Message
From
17/09/2003 10:53:38
 
 
To
17/09/2003 10:30:16
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00829837
Message ID:
00829899
Views:
19
Carl,

I'm just learning DataGrids myself, but I think you'd need something like this (this is not tested code, so play with it ... also it's C#, sorry):
DataGridTableStyle style = new DataGridTableStyle();
DataGridBoolColumn check = new DataGridBoolColumn();
style.GridColumnStyles.Add(check);
MyGrid.TableStyles.Add(style);
or something like that. This is obviously oversimplified and probably needs a bit more tweaking, but as I'm not sure exactly what part you're stuck on, this will give you something to get started maybe.

~~Bonnie

>Hi Eric,
>
>Thanks for the reply. My DataGrid is defined in the VB.Net form using the TableStyles Collection Editor. How would I define the check box in the collection?
>
>Thanks,
>Carl
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform