开发者

Row Number In datagrid Control WPF

开发者 https://www.devze.com 2023-01-16 21:29 出处:网络
How can I display row number in the first cell of the datagrid control, I don\'t have the row number or any other information, just data from the data base and

How can I display row number in the first cell of the datagrid control, I don't have the row number or any other information, just data from the data base and

Some Value Some Other value

and I want the output like

First Some Value Secont Some Oth开发者_JAVA技巧er Value

How can I do that, any idea


The "easiest" method is to wrap your data model in a view model thank has a extra property called rowNr...

If this is not possible, also look at this: http://blogs.msdn.com/b/vinsibal/archive/2008/05/28/wpf-3-5-sp1-feature-alternating-rows.aspx

0

精彩评论

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