menu

WinForms

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

    Show / Hide Table of Contents

    Class GridRangeInsertedEventArgs

    Provides data about the RowsInserted and ColsInserted events.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    SyncfusionSuccessEventArgs
    GridRangeInsertedEventArgs
    Inherited Members
    SyncfusionEventArgs.ToString()
    SyncfusionSuccessEventArgs.Success
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridRangeInsertedEventArgs : SyncfusionSuccessEventArgs
    Remarks

    GridRangeInsertedEventArgs is a custom event argument class used by the RowsInserted and ColsInserted events.

    This event is raised by the model to notify all associated views that it has inserted the specified number of rows or column into its data store and all associated views should redraw affected display contents. The change can be originated programmatically by a method call to InsertRange(Int32, Int32).

    The Success property indicates if all changes were successfully made to the model. If it is False, the operation was aborted. However, the view contents need to be redrawn no matter if the operation was successful or not.

    Constructors

    GridRangeInsertedEventArgs(Int32, Int32, GridModelInsertRangeOptions, Boolean)

    Initializes a new instances ofGridRangeInsertedEventArgs class.

    Declaration
    public GridRangeInsertedEventArgs(int insertAt, int count, GridModelInsertRangeOptions iro, bool success)
    Parameters
    Type Name Description
    System.Int32 insertAt

    The row or column index where the cells should be inserted before.

    System.Int32 count

    The number of rows or columns.

    GridModelInsertRangeOptions iro

    Information about the cells to be inserted such as cell contents, row, and column sizes and more.

    System.Boolean success

    Indicates whether an operation was successful.

    Properties

    Count

    Gets the number of rows or columns.

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

    InsertAt

    Gets the row or column index where the cells should be inserted before.

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

    InsertRangeOptions

    Gets the Information about the cells to be inserted such as cell contents, row, and column sizes and more.

    Declaration
    public GridModelInsertRangeOptions InsertRangeOptions { get; }
    Property Value
    Type Description
    GridModelInsertRangeOptions

    A GridModelInsertRangeOptions that holds information about the cells to be inserted such as cell contents, row, and column sizes and more.

    See Also

    GridRangeInsertedEventHandler
    InsertRange(Int32, Int32)
    GridRangeInsertingEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved