FlexGrid for WinForms
BeforeAddRow Event



Fires before a new row is added by the user.
Syntax
'Declaration
 
<C1DescriptionAttribute("Fires before a new row is added by the user.")>
Public Event BeforeAddRow As RowColEventHandler
'Usage
 
Dim instance As C1FlexGridBase
Dim handler As RowColEventHandler
 
AddHandler instance.BeforeAddRow, handler
[C1Description("Fires before a new row is added by the user.")]
public event RowColEventHandler BeforeAddRow
[C1Description("Fires before a new row is added by the user.")]
public:
event RowColEventHandler^ BeforeAddRow
Remarks

This event only fires when AllowAddNew is set to true and the user creates a new empty row by moving the cursor into the last row on the grid. It does not fire when a new row is added to the grid programmatically or when a row is added to the grid's data source.

You can use this event to cancel the creation of new rows by setting the Cancel parameter to true. In this case, the cursor does not move into the new row.

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