Update Data in a Datagrid
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I'm just trying to add a listbox to a datagrid to allow the user to change selected fields. It should be easier than this, lol. I'm getting an error "Object reference not set to an instance of an object", when I select an actual value from my listbox within my datagrid. My code is as follows: Dim myDG As New DataGrid ... Private Sub listControl_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles listControl.SelectedValueChanged myDG(hitTestGrid.Row, hitTestGrid.Column) = listControl.ToString End Sub ... If someone could point me to a good tutorial on editing data in datagrids, I'd appreciate it. Thanks, Larry:)
LWhite