Class MergedCellHelper
Helper class to provide provision for customer purpose.
Inheritance
System.Object
MergedCellHelper
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public static class MergedCellHelper : Object
Methods
AddRange(SfDataGrid, CoveredCellInfo)
Add the range to CoveredCells.
Declaration
public static void AddRange(this SfDataGrid dataGrid, CoveredCellInfo coveredCellRange)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The SfDataGrid. |
CoveredCellInfo | coveredCellRange | Specifies the range that will added to CoveredCells |
CanMergeNextRows(SfDataGrid, Object)
Decides whether to merge the adjacent parent rows based on child source of row data.
Declaration
public static bool CanMergeNextRows(this SfDataGrid dataGrid, object rowData)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The SfDataGrid. |
System.Object | rowData | Specifies the data object to find the child items source. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the DetialsViewDataGrid has items source; otherwise, false. |
GetConflictRange(SfDataGrid, CoveredCellInfo)
Gets the conflicting range from existing CoveredCells collection.
Declaration
public static CoveredCellInfo GetConflictRange(this SfDataGrid dataGrid, CoveredCellInfo coveredCellInfo)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The SfDataGrid. |
CoveredCellInfo | coveredCellInfo | Specifies the range that conflicting with existing covered ranges |
Returns
Type | Description |
---|---|
CoveredCellInfo | Returns the covered cell range if the given range is conflicting any other existing range of CoveredCells. |
RemoveRange(SfDataGrid, CoveredCellInfo)
Remove the range from CoveredCells.
Declaration
public static void RemoveRange(this SfDataGrid dataGrid, CoveredCellInfo coveredCellRange)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | dataGrid | The SfDataGrid. |
CoveredCellInfo | coveredCellRange | Specifies the range to remove from CoveredCells |