>Hello the Expert,
>
>I am implementing checkbox in the datagrid, I have records (the record type is bit, 0 = false, 1 = true) and each of their value (0 or 1) will be stored to checkbox which located inside the datagrid, how to do this?
>
>Many thanks in advance
>
>Regards
>Winan
Winan,
Create a new template column in your grid. Add the checkbox to the template column. Bind the .checked property to Container.DataItem.myBitColumn. If you use the Grid Builder and interactively bind the .checked property, it will be set to DataBinder.Eval(Container, "DataItem.myBitColumn"), which is okay too.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement