Gets or sets how will the editing of cells be handled.
Use this property to set how will the editing of cells be handled. You have 4 choices:
If set to CellEditType.None a cell will only be selected after it was clicked.
If set to CellEditType.CheckBox, a cell will become a CheckBox. Its data will be converted to bool and according to the value of bool a check will be displayed or not. A CheckBoxEdit event will be fired after the cell is clicked. If this event is not handled the check will just change its state to the opposite to what it was before.
If set to CellEditType.TextBox, a cell will become editable. A TextBox class control will be displayed over the cell and its data will be copied into this textbox. After the textbox loses focus (mostly because some other cell is clicked) a TextBoxEdit event will be fired. If you don't handle this event, the text property of the textbox will be copied into the cell. However you can further customize the editing of the cell by handling this event. The arguments for this event are derived from CancelEventArgs class which means that you can cancel this event. In that case the changes made to the cell (in the textbox) will not be reflected back into the cell.
If set to CellEditType.Custom, you have to assign a Control derived class to CellEditCustomControl property of this column. Whenever a cell is clicked in this column, a BeforeCustomEdit event will be fired and this custom control will be displayed to the user. After the custom control loses focus an AfterCustomEdit event will be fired. You should handle this event to reflect changes to the custom control back to the cell.
Column Class | Resco.Controls.SmartGrid Namespace