[]
Puts the grid in edit mode and starts editing a cell.
public virtual bool StartEditing(int row, int col, char key)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
char | key | Initial character to be sent to the editor. |
Type | Description |
---|---|
bool | True if the grid entered edit mode successfully, false otherwise. |
Puts the grid in edit mode and starts editing a cell.
public virtual bool StartEditing(int row, int col, char key, Point ptMouse)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
char | key | Initial character to be sent to the editor. |
Point | ptMouse | Mouse position in client coordinates. |
Type | Description |
---|---|
bool | True if the grid entered edit mode successfully, false otherwise. |
Puts the grid in edit mode and starts editing a cell.
public bool StartEditing(int row, int col)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
Type | Description |
---|---|
bool | True if the grid entered edit mode successfully, false otherwise. |
Puts the grid in edit mode and starts editing the current cell.
public bool StartEditing()
Type | Description |
---|---|
bool | True if the grid entered edit mode successfully, false otherwise. |
If the AllowEditing property is set to true, the control goes into edit mode automatically when the user presses the edit key (F2), the space bar, or any printable character. You may use the StartEditing(int, int, char) method to force the control into cell-editing mode.
The StartEditing(int, int, char) method forces the control into editing mode even if AllowEditing is set to False. You may also use it to allow editing of fixed cells.
The code below uses the StartEditing(int, int, char) method to keep the grid in edit mode while the user moves the selection (like the .NET DataGrid control):
void _flex_RowColChange(object sender, System.EventArgs e)
{
_flex.StartEditing();
}
Starts editing a cell in response to a key press.
protected virtual bool StartEditing(int row, int col, char key, bool force)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
char | key | Key that initiated the edit process. |
bool | force | Whether editing should start even in non-editable cells (e.g. fixed cells). |
Type | Description |
---|---|
bool | True if the editing process was started successfully, false otherwise. |
This method is for internal use. It allows inherited classes to customize the editing process.
Starts editing a cell in response to a mouse action.
protected virtual bool StartEditing(int row, int col, Point ptMouse, bool dblClick)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
Point | ptMouse | Mouse position in client coordinates. |
bool | dblClick | Whether the action was a double-click. |
Type | Description |
---|---|
bool | True if the editing process was started successfully, false otherwise. |
This method is for internal use. It allows inherited classes to customize the editing process.