jj 16.03 add recordchanged for datagridview

This commit is contained in:
JenneJ
2016-03-16 13:44:54 +01:00
parent f85b19b83f
commit c6a1b7904f

View File

@@ -220,10 +220,11 @@ Public Class ClassControlBuilder
Case "CheckedListBoxControl"
Dim chklistbox As DevExpress.XtraEditors.CheckedListBoxControl = CType(control, DevExpress.XtraEditors.CheckedListBoxControl)
AddHandler chklistbox.ItemCheck, AddressOf RecordChanged
'Case "DataGridView"
' Dim gridview As DataGridView = CType(control, DataGridView)
' AddHandler gridview.UserDeletingRow, AddressOf UserDeletingRow
' AddHandler gridview.CellEndEdit, AddressOf CellEndEdit
Case "DataGridView"
Dim gridview As DataGridView = CType(control, DataGridView)
AddHandler gridview.RowsAdded, AddressOf RecordChanged
AddHandler gridview.CellValueChanged, AddressOf RecordChanged
AddHandler gridview.RowsRemoved, AddressOf RecordChanged
End Select
End Sub