Syncfusion.Grid.Windows
Example 


CoveredRanges Property (GridModel)

Gets covered ranges in the grid.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
<BrowsableAttribute(True)>
Public ReadOnly Property CoveredRanges As GridModelCoveredRanges
'Usage
 
Dim instance As GridModel
Dim value As GridModelCoveredRanges
 
value = instance.CoveredRanges
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
[Browsable(true)]
public GridModelCoveredRanges CoveredRanges {get;}
Example
This example shows how to use the CoveredRanges property.
// Defining the covered range.
GridRangeInfo coveredRange = GridRangeInfo.Cells(1, 2, 5, 5);
// Adding the range to be covered.
this.gridControl1.Model.CoveredRanges.Add(coveredRange);
//Finding range of covered cells.
GridRangeInfo range = this.gridControl1.Model.CoveredRanges.FindRange(e.RowIndex, e.ColIndex);
// Check whether the current cell is covered or not.
GridRangeInfo range;
if(this.gridControl1.Model.CoveredRanges.Find(e.RowIndex,e.ColIndex,out range))
{
  // TODO
  // TODO
}
' Defining the covered range.
Dim coveredRange As GridRangeInfo = GridRangeInfo.Cells(1, 2, 5, 5)
' Adding the range to be covered.
Me.gridControl1.Model.CoveredRanges.Add(coveredRange)
'Finding range of covered cells.
Dim range As GridRangeInfo = Me.gridControl1.Model.CoveredRanges.FindRange(e.RowIndex, e.ColIndex)
'Check whether the current cell is covered or not.
Dim range As GridRangeInfo
If Me.gridControl1.Model.CoveredRanges.Find(e.RowIndex,e.ColIndex,range) Then
   ' TODO
   ' TODO
End If
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also