0

I have a grid in WPF bound to a ObservableCollection(MVVM). I have some monthly information so the first columns refer to a task and then I have one column per day. For these reason it's very important to frozen first columns and then user may scroll horizontally to see all days information. I need vertical scroll working too.

This question is similar to that Creating a table/grid with a frozen column and frozen headers but I don't have any clue on how to do it with C#/WPF. Any ideas? I have only thought about using two grids but I don't know if its possible to sync vertical scroll.

4

2 に答える 2

1

In order to freeze columns DataGrid have property called as FrozenColumnCount

Please see link for example http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.frozencolumncount%28VS.95%29.aspx

于 2012-06-26T09:24:18.553 に答える
0

I solved it in DevXpress GridControl setting Fixed property of the desired GridColumn to true.

于 2012-06-26T10:13:28.587 に答える