WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit e12e85b

Browse files
ES-976509 - Resolved the ReadMe file changes to the repository
1 parent 4c6aa65 commit e12e85b

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# How to resize the row header column in WPF DataGrid(SfDataGrid)?
2-
3-
## About the sample
1+
# How to Resize the Row Header Column in WPF DataGrid?
42

53
This example illustrates how to resize the row header column in [WPF DataGrid](https://www.syncfusion.com/wpf-ui-controls/datagrid) (SfDataGrid)?
64

7-
[WPF DataGrid](https://www.syncfusion.com/wpf-ui-controls/datagrid) (SfDataGrid) does not provide the direct support to resize the row header column. You can resize the row header column by overriding the [GridRowHeaderCell](https://help.syncfusion.com/cr/cref_files/wpf/Syncfusion.SfGrid.WPF~Syncfusion.UI.Xaml.Grid.GridRowHeaderCell.html) and [GridRowHeaderIndentCell](https://help.syncfusion.com/cr/cref_files/wpf/Syncfusion.SfGrid.WPF~Syncfusion.UI.Xaml.Grid.GridRowHeaderIndentCell.html) by triggering the Thumb.DragDelta event.
5+
[WPF DataGrid](https://www.syncfusion.com/wpf-ui-controls/datagrid) (SfDataGrid) does not provide the direct support to resize the row header column. You can resize the row header column by overriding the [GridRowHeaderCell](https://help.syncfusion.com/cr/cref_files/wpf/Syncfusion.SfGrid.WPF~Syncfusion.UI.Xaml.Grid.GridRowHeaderCell.html) and [GridRowHeaderIndentCell](https://help.syncfusion.com/cr/cref_files/wpf/Syncfusion.SfGrid.WPF~Syncfusion.UI.Xaml.Grid.GridRowHeaderIndentCell.html) by triggering the **Thumb.DragDelta** event.
86

97
```xml
108
<Window.Resources>
@@ -242,13 +240,11 @@ This example illustrates how to resize the row header column in [WPF DataGrid](h
242240
```c#
243241
private void PART_RightHeaderGripper_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
244242
{
245-
SfDataGrid sfDataGrid = (sender as Thumb).Tag as SfDataGrid;
246-
var width = sfDataGrid.RowHeaderWidth + e.HorizontalChange;
247-
if (width >= 24)
248-
sfDataGrid.RowHeaderWidth = width;
243+
SfDataGrid sfDataGrid = (sender as Thumb).Tag as SfDataGrid;
244+
var width = sfDataGrid.RowHeaderWidth + e.HorizontalChange;
245+
if (width >= 24)
246+
sfDataGrid.RowHeaderWidth = width;
249247
}
250248
```
251-
KB article - [How to resize the row header column in WPF DataGrid(SfDataGrid)?](https://www.syncfusion.com/kb/11517/how-to-resize-the-row-header-column-in-wpf-datagrid-sfdatagrid)
252249

253-
## Requirements to run the demo
254-
Visual Studio 2015 and above versions
250+
![DataGrid with resizing row header column](ResizingRowHeader.png)

ResizingRowHeader-1.png

26.4 KB
Loading

ResizingRowHeader.png

26.4 KB
Loading

0 commit comments

Comments
 (0)