How To Change The Column Resizing Cursor Position In WPF Datagrid?

Sample date Updated on Dec 12, 2025
columnsizing cursorposition resizing wpf wpf-application wpf-datagrid

This example illustrates how to change the column resizing cursor position in WPF DataGrid (SfDataGrid).

The default position for the resizing cursor is west to east in DataGrid. If you want to change the flow direction of SfDataGrid, you need to change the resizing cursor by using SfDataGrid.ColumnResizingController.ResizingCursor.

this.dataGrid.ColumnResizingController.ResizingCursor = Cursors.SizeNS;

DataGrid with modified column resizing cursor

Take a moment to peruse the WPF DataGrid - Getting Started documentation, where you can find about DataGrid with code examples.

Requirements to run the demo

Visual Studio 2015 and above versions

Up arrow