FlexGrid for WinForms
StartEditing() Method
Example 



Puts the grid in edit mode and starts editing the current cell.
Syntax
'Declaration
 
Public Overloads Function StartEditing() As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
value = instance.StartEditing()
public bool StartEditing()
public:
bool StartEditing(); 

Return Value

True if the grid entered edit mode successfully, false otherwise.
Remarks

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(Int32,Int32,Char) method to force the control into cell-editing mode.

The StartEditing(Int32,Int32,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.

Example
The code below uses the StartEditing(Int32,Int32,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();
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback