Class GridQueryCanMergeCellsEventArgs
Provides data about the QueryCanMergeCells event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridQueryCanMergeCellsEventArgs : SyncfusionHandledEventArgs
Remarks
The GridQueryCanMergeCellsEventArgs is a custom event argument class used by the QueryCanMergeCells event when the model tries to find out whether two neighboring cells can be merged.
You can customize the default comparison behavior of the grid and set Result to True when cells should be merged. You should also set Handled to True. The grid will the use the result provided through the Result property.
Constructors
GridQueryCanMergeCellsEventArgs(GridStyleInfo, GridStyleInfo, Boolean)
Initalizes a new object.
Declaration
public GridQueryCanMergeCellsEventArgs(GridStyleInfo style1, GridStyleInfo style2, bool result)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style1 | The first style object. Use the style object's CellIdentity to find out about row and column index of the cell. |
GridStyleInfo | style2 | The second style object. Use the style object's CellIdentity to find out about row and column index of the cell. |
System.Boolean | result | The result that should be returned to the grid. You should also set Handled to True if you want the grid to return this result instead of doing its own comparison. |
Properties
Result
Gets or sets a value indicating whether the result that should be returned to the grid. You should also set Handled to True if you want the grid to return this result instead of doing its own comparison.
Declaration
[TraceProperty(true)]
public bool Result { get; set; }
Property Value
Type |
---|
System.Boolean |
Style1
Gets the first style object. Use the style object's CellIdentity to find out about row and column index of the cell.
Declaration
[TraceProperty(true)]
public GridStyleInfo Style1 { get; }
Property Value
Type |
---|
GridStyleInfo |
Style2
Gets the second style object. Use the style object's CellIdentity to find out about row and column index of the cell.
Declaration
[TraceProperty(true)]
public GridStyleInfo Style2 { get; }
Property Value
Type |
---|
GridStyleInfo |