开发者

Is it possible to 'freeze pane' in WPF datagrid

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜