Anita Level: Big Cheese
 Registered: 19-05-2005 Posts: 24
|
datagrid checkbox in edit mode
Hi,
When clicking on the edit button for a particular row in a datagrid, the checkbox should keep the value that is in the database field so the user can see the original value before changing it.
The code will go in the DataGrid1_EditCommand and start out something like this
'select the check box
Dim cbinc As CheckBox = CType(DataGrid1.Items(DataGrid1.EditItemIndex).FindControl("cbInc_EditItem"), CheckBox)
'select the correct entry in the checkbox
'cbinc.Checked =
Does someone know the rest of the code to do this?
Thanks,
|