开发者

Is it possible to 'freeze pane' in WPF datagrid

开发者 https://www.devze.com 2023-03-30 17:51 出处:网络
Is it possible with a WPF datagrid to do like in Excel and Freeze the first few columns 开发者_运维问答so that they always appear

Is it possible with a WPF datagrid to do like in Excel and Freeze the first few columns 开发者_运维问答so that they always appear

If so how ?

Thanks


You have the property FrozenColumnCount.
If you set it to 2 for example, then you can scroll the DataGrid horizontally but the first two columns will always be visible

<DataGrid FrozenColumnCount="2" ...>


Try: DataGrid.FrozenColumnCount.

0

精彩评论

暂无评论...
验证码 换一张
取 消