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
1530
Positioning within DataGrid
posted

Hi there,

I use the XamDataGrid just for displaying bound data in a MVVM environment.
My ViewModel just knows the source records, but not the order or groups in which the user sees them. All data manipulations are made in the ViewModel and the VM need to set the selected record in his list.

Now I have the problem, that e.g. if the user deletes a specific record, I want to set the logical next record as active but i don't know  which record is the next.
I would raise an event telling the View to select first/last/previous/next record to be set as active. 

Is there a way the View could get the first/last/previous/next record for a given one, even if there are groups.

The previous record would be the the first record above the active one, like the use would open all groups upwards and then go down to the last child.

The next record would be the record in the same level or if is the last one in a group, open recursively the following groups until a datarecord is found.

In the same manner the first/last record could be found.

Are there any existing methods to get first/last/next/previous records?
If not, will they come in one of the next versions?

Best regards
cew3