Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CheckBox in a DataGrid
Message
De
17/09/2003 10:53:38
 
 
À
17/09/2003 10:30:16
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Divers
Thread ID:
00829837
Message ID:
00829899
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform