Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
xamDataGrid setting focus on Cell of newly created Row using MVVM
posted

We are using MVVM pattern for our application. We have used xamDataGrid and binded its DataSource and ActiveDataItem to viewmodel class property.

DataSource="{Binding Path=FilterList}"
ActiveDataItem="{Binding Path=SelectedFilter}"

When we add new item in "FilterList" collection and set newly created item as "SelectedFilter", record get added in xamDataGrid. However focus remain on newly added row and I am not able to move focus on cell for editing it values (using F2 key).

Please note we want to do this without using mouse..  So using CellClickAction="EnterEditModeIfAllowed" does not come in picture as we are navigating through keyboard.