borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (data table changes -- generate new dataset?)Next Topic (server side crystal printing) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : datagrid checkbox in edit mode
Poster Message
Anita
Level: Big Cheese

Registered: 19-05-2005
Posts: 24

icon 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,

29-03-2006 at 02:02 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : datagrid checkbox in edit mode
Previous Topic (data table changes -- generate new dataset?)Next Topic (server side crystal printing) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder