validation

This commit is contained in:
Jonathan Jenne 2019-05-14 13:33:23 +02:00
parent aca45281bc
commit 3ac505ae1b

View File

@ -374,13 +374,20 @@ Public Class ClassControlCreator
oControl.DataSource = oDatatable oControl.DataSource = oDatatable
AddHandler oView.CellValueChanged, Function(sender As Object, e As CellValueChangedEventArgs) AddHandler oView.CellValueChanged, AddressOf HandleCellValueChanged
' TODO: Do the validation
End Function
Return oControl Return oControl
End Function End Function
Public Shared Function HandleCellValueChanged(sender As Object, e As CellValueChangedEventArgs)
' TODO: Do the validation
Dim oCurrentView As GridView = DirectCast(sender, GridView)
Dim oCurrentControl As GridControl = oCurrentView.GridControl
Dim oCurrentDatasource As DataTable = oCurrentControl.DataSource
Dim oColumn = oCurrentDatasource.Columns.Item(e.Column.FieldName)
Dim foo = 1
End Function
Public Shared Function CreateExistingLine(row As DataRow, designMode As Boolean) As LineLabel Public Shared Function CreateExistingLine(row As DataRow, designMode As Boolean) As LineLabel
Dim control As LineLabel = CreateBaseControl(New LineLabel(), row, designMode) Dim control As LineLabel = CreateBaseControl(New LineLabel(), row, designMode)