Conditional Editing
When the edit mode is active, and the EditAutoNavigate property is true, the edit label will move from one line item or cell to the next when a navigation key is pressed. The default edit mode will skip over cells with columns defined as Boolean, image or are read only. The navigation will also skip over items marked as read only, or a header item.
However, there may be special cases where a particular line item or cell must be skipped. If this is the case, the programmer must use the InitializeCellEdit event to determine if the cell or line item can be edited. If not, the control will look for the next cell item to edit and try again (or previous cell item if <Shift Tab> is pressed). This is different from the BeforeCellEdit event in that if the developer cancels the editing in that event, the edit mode will no longer be active.
C#
void dbicList1_InitializeCellEdit(object sender, Dbi.WinControl.InitializeCellEditEventArgs e)
{
if (CanWeEditTheCell(e.NodeItem, e.ColumnIndex) == false)
e.AllowEdit = false;
}
VB.NET
Private Sub dbicList1_InitializeCellEdit(sender As System.Object, e As Dbi.WinControl.InitializeCellEditEventArgs) Handles dbicList1.InitializeCellEdit
If (CanWeEditTheCell(e.NodeItem, e.ColumnIndex) = False) Then
e.AllowEdit = False
End If
End Sub