'Declaration Public Event StartEdit As RowColEventHandler
public event RowColEventHandler StartEdit
The event handler receives an argument of type RowColEventArgs containing data related to this event. The following RowColEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the operation should be canceled. |
Col | Gets the index of the column that caused the event. |
Row | Gets the index of the row that caused the event. |
This event fires before the control enters edit mode. It allows you to prevent editing by setting the Cancel parameter to true, or to supply a list of choices for a combo list using the C1FlexGridBase.ComboList property, or an edit mask using the C1FlexGridBase.EditMask property.
If the choices or the mask are the same for a whole column, you may set them more efficiently using the RowCol.ComboList and RowCol.EditMask properties for the Column object. In this case, there's no need to handle the StartEdit event at all.
The grid also exposes a C1FlexGridBase.BeforeEdit event. The difference between the two is that BeforeEdit fires when the grid paints the cell that has the focus (so it can determine whether the cell has a drop-down button). BeforeEdit fires more often than StartEdit, and does not always indicate that the grid is actually entering edit mode.