The event handler receives an argument of type CancelableCellEventArgs containing data related to this event. The following CancelableCellEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
Cell | Returns a reference to the cell of interest. |
Thecellargument returns a reference to an UltraGridCell object that can be used to set properties of, and invoke methods on, the cell that will be activated. You can use this reference to access any of the returned cell's properties or methods.
Thecancelargument enables you to programmatically prevent the cell from being activated. This argument can be used to prevent the cell from activating unless a certain condition is met.
This event is generated before a cell is activated, which means it has been given focus.
TheBeforeCellDeactivateevent is generated before a cell is deactivated, meaning it will lose focus.
TheAfterCellActivateevent, which occurs after a cell is activated, is generated after this event, providedcancelis not set to True.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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