I am working on a WPF application. As per requirement I have a dynamic data grid (User can select the columns to display) in my main page. Currently I am using MVVM design pattern. One of the column in my data grid is “Line Number”(1,2,3,…250) . As per new requirement I need to add a text box in this main screen. Once the user enter the line number in this test box and clicking “ENTER” key I need to select/Focus the corresponding line in the datagrid. How can I implement this from Vie Model?
How can I select a data grid Row from the View Model.?
How can I move the scroll position to that particular data row?
Any help would be appreciable.
Thanks