validation
This commit is contained in:
parent
aca45281bc
commit
3ac505ae1b
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user