开发者

How can I size all rows to evenly fill all the height of a DataGrid?

I have a WPF application that follows the MVVM pattern. The View contains DataGrid (from WPF Toolkit) that displays some information and supports paging. I want the rows开发者_如何转开发 number to depend on the DataGrid's size. How can I do that?


RenderSize is size. http://msdn.microsoft.com/enus/library/system.windows.uielement.rendersize.aspx
From datagrid size and row size you should be able to calculate how many row can fit on a single screen.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜