public PrepareForEditing ( |
||
cell | The Cell to be edited | |
table | The Table that contains the Cell | |
cellPos | A CellPos representing the position of the Cell | |
cellRect | The Rectangle that represents the Cells location and size | |
userSetEditorValues | bool | Specifies whether the ICellEditors /// starting value has already been set by the user |
return | bool |
public override bool PrepareForEditing(Cell cell, Table table, CellPos cellPos, Rectangle cellRect, bool userSetEditorValues)
{
if (!(table.ColumnModel.Columns[cellPos.Column] is DropDownColumn))
{
throw new InvalidOperationException("Cannot edit Cell as DropDownCellEditor can only be used with a DropDownColumn");
}
return base.PrepareForEditing (cell, table, cellPos, cellRect, userSetEditorValues);
}