FlexGrid for WinForms
StartEdit Event



Fires before the control enters edit mode.
Syntax
'Declaration
 
<C1DescriptionAttribute("Fires before the control enters edit mode.")>
Public Event StartEdit As RowColEventHandler
'Usage
 
Dim instance As C1FlexGridBase
Dim handler As RowColEventHandler
 
AddHandler instance.StartEdit, handler
[C1Description("Fires before the control enters edit mode.")]
public event RowColEventHandler StartEdit
[C1Description("Fires before the control enters edit mode.")]
public:
event RowColEventHandler^ StartEdit
Remarks

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 ComboList property, or an edit mask using the 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 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.

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

 

 


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

Send Feedback