1) 'Error 4 function 'ProcessTabKey' cannot be declared 'Overrides' because it does not override a function in a base class. '
Class
CustomGridBehavior
Inherits BaseGridBehavior
Protected Overloads Overrides Function ProcessTabKey(ByVal keys As System.Windows.Forms.KeyEventArgs) As Boolean
If Me.CheckIfLast() Then
Me.GridControl.EndEdit()
Me.GridControl.Rows.AddNew()
Me.GridControl.Rows(Me.GridControl.Rows.Count - 1).IsCurrent = True
Me.GridControl.Columns(1).IsCurrent = True
Me.GridControl.Focus()
Me.GridControl.BeginEdit()
Return True
Else
Me.GridControl.Focus()
Me.GridControl.EndEdit()
TryCast(GridControl.DataSource, BindingSource).EndEdit()
Return MyBase.ProcessTabKey(keys)
End If
End Function
2) 'Error 5 'ProcessTabKey' is not a member of 'Telerik.WinControls.UI.BaseGridBehavior'. '
Same code as above
3) 'Error 6 Value of type 'Debitask.CustomRadGridView' cannot be converted to 'Telerik.WinControls.UI.RadGridViewElement'.'
Class
CustomRadGridView
Inherits RadGridView
Public Sub New()
Dim gridBehavior As New CustomGridBehavior()
gridBehavior.Initialize(
Me) '<-- This line.
Me.GridBehavior = gridBehavior
End Sub
4) 'Error 33 Property 'Index' is 'ReadOnly'.'
newColumn =
New GridViewCheckBoxColumn
With newColumn
.BestFit()
.HeaderText =
"Selected"
.ReadOnly = False
.Index = 0
End With
5) Error 38 'CellElement' is not a member of 'Telerik.WinControls.UI.GridViewCellInfo'.
rowCurrent.Cells(
"image").CellElement.Image = Debitask.My.Resources.delete16
6) Error 117 Event 'GroupSumaryEvaluate' cannot be found'
private Sub grdAccessGroups_GroupSumaryEvaluate(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GroupSummaryEvaluationEventArgs) Handles grdAccessGroups.GroupSumaryEvaluate