AddHandler() sfDataGrid1.RowValidating, AddressOf sfDataGrid1_RowValidating
AddHandler sfDataGrid1.CurrentCellEndEdit, AddressOf SfDataGrid1_CurrentCellEndEdit
Private Sub sfDataGrid1_RowValidating(ByVal sender As Object, ByVal e As RowValidatingEventArgs)
Dim data = TryCast(e.DataRow.RowData, OrderInfo)
'Here you can update the entire row values to database
End If
End Sub
Private Sub sfDataGrid1_CurrentCellEndEdit(ByVal sender As Object, ByVal e As Syncfusion.WinForms.DataGrid.Events.CurrentCellEndEditEventArgs)
If Not sfDataGrid1.IsAddNewRowIndex(sfDataGrid1.CurrentCell.RowIndex) Then
'Here you can update the cell values to database
End If
End Sub |
' To notify the DetailsView events to parent DataGrid events.
firstLevelNestedGrid.NotifyEventsToParentDataGrid = True |