How to freeze a datagrid column in WPF

freeze the first two columns, but if I want to freeze a column dynamically, like 3rd or 4th, how could I do that

+4
source share
1 answer

You can work with the variable FrozenColumnCount , which will set the number of left columns in the grid that have been frozen

However, if you want to freeze, say only the third column, then I think you need to write your own control. Only the leftmost columns can be frozen in a datagrid.

+4
source

Source: https://habr.com/ru/post/1403657/


All Articles