menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCurrentCellActivatingEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCurrentCellActivatingEventArgs

    Provides data about the cancelable CurrentCellActivating event before the grid activates the specified cell as current cell.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridCurrentCellActivatingEventArgs
    GridCurrentCellMovingEventArgs
    Inherited Members
    SyncfusionCancelEventArgs.ToString()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridCurrentCellActivatingEventArgs : SyncfusionCancelEventArgs
    Remarks

    You can disallow the activation of specific cells at run-time when you assign True to System.ComponentModel.CancelEventArgs.Cancel.

    You can modify the RowIndex and ColIndex to activate a different cell.

    You can determine if Activate(Int32, Int32) was called stand-alone or as result of a MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) call by checking the IsInMoveTo property.

    Once the current cell has been activated, a CurrentCellActivated event is raised or a CurrentCellActivateFailed if activating the specified cell failed.

    See MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) for a discussion about the order of events that you receive when the current cell is moved.

    Constructors

    GridCurrentCellActivatingEventArgs(Int32, Int32, GridSetCurrentCellOptions)

    Initializes the new instances for the GridCurrentCellActivatingEventArgs class.

    Declaration
    public GridCurrentCellActivatingEventArgs(int rowIndex, int colIndex, GridSetCurrentCellOptions options)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The row index.

    System.Int32 colIndex

    The column index.

    GridSetCurrentCellOptions options

    The options specified for the MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) operation.

    Properties

    ColIndex

    Gets or sets the column index.

    Declaration
    [TraceProperty(true)]
    public int ColIndex { get; set; }
    Property Value
    Type
    System.Int32

    Options

    Gets or sets the options specified for the MoveTo(Int32, Int32, GridSetCurrentCellOptions, Boolean) operation.

    Declaration
    [TraceProperty(true)]
    public GridSetCurrentCellOptions Options { get; set; }
    Property Value
    Type
    GridSetCurrentCellOptions

    RowIndex

    Gets or sets the row index.

    Declaration
    [TraceProperty(true)]
    public int RowIndex { get; set; }
    Property Value
    Type
    System.Int32

    See Also

    GridCurrentCellActivatingEventHandler
    CurrentCellActivating
    Activate(Int32, Int32)
    IsInMoveTo
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved