You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# WPF GridControl coveredcells
1
+
# WPF GridControl CoveredCells
2
2
3
-
This repository contains the samples that demonstrates various options in covered cell feature of [WPF GridControl](https://help.syncfusion.com/wpf/gridcontrol/overview).
3
+
This repository contains the samples that demonstrates various options in covered cell feature of [WPF GridControl](https://www.syncfusion.com/wpf-controls/excel-like-grid).
4
4
5
5
### Creating covered cells using QueryCoveredRange event

28
+
27
29
### Find whether a cell in covered range
28
30
29
31
When you want to find a cell in covered ranges, you can use the [GetCoveredCell](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Grid.GridCoveredCellInfoCollection.html#Syncfusion_Windows_Controls_Grid_GridCoveredCellInfoCollection_GetCoveredCell_System_Int32_System_Int32_) method. If the specified cell with row index and column index is inside in `GetCoveredCell`, a range will be returned.
MessageBox.Show("Cover range for cell (2,3) is "+"R"+coverRanges.Left+"C"+coverRanges.Top+":"+"R"+coverRanges.Bottom+"C"+coverRanges.Right);
38
40
```
39
41
42
+

43
+
40
44
### Remove covered range at run time
41
45
42
46
You can remove the covered range at run time by using [Clear](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.CellGrid.CellSpanInfoCollection-1.html#Syncfusion_UI_Xaml_CellGrid_CellSpanInfoCollection_1_Clear) method.
The below image provides covered range at run time before removing
73
+
74
+

75
+
76
+
The below image provides covered range at run time after removing
77
+
78
+

68
79
69
80
### Extend covered range at run time
70
81
71
82
You can extend the covered range at run time by using [Add](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.CellGrid.CellSpanInfoCollection-1.html#Syncfusion_UI_Xaml_CellGrid_CellSpanInfoCollection_1_Add__0_) method.
72
83
73
84
For example, Create one button. Next, clear the current covered cell collection using `Clear` method and create new covered cell ranges by using `Add` method in this click event.
74
85
86
+
**Note:** Before extend the covered cell range, you need to clear the covered range.
0 commit comments