阅读背景:

以编程方式将Datagrid行放入WPF,MVVM中的视图中

来源:互联网 

I would like to bring a row of my data grid into view programatically. I have a more than 100 rows. When I create a row(which I am doing by adding an item to a observable collection) I would like that new row to be selected and bring that into view. I was able to select the new row in my code but could not do the scrolling. More over I want the first cell of the row to be in edit mode so that the user can input text. I am following MVVM pattern for the application and would like to keep zero code in my views. How Can I achieve this? I would like to bring a row of my data grid int




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: