Hi,
I want to programmatically move to next item in grid view. (This is because user clicks a button that does numerous things then moves to next item).
Following code works, except when the grid view has a filter applied. Then it doesn't work, if the next item is filtered out.
Is there anyway around this. It's as if the gridview moves to the filtered item and therefore doesn't select anything.
Dim x = Me.RadGridView1.ItemsSource
Dim z As System.Windows.Data.ListCollectionView = Me.RadGridView1.ItemsSource
Dim intPos As Integer
intPos = z.CurrentPosition
Me.RadGridView1.SelectedItem = z(intPos + 1)
I've also tried z.MoveCurrentToNext (which has the same problem, works unfiltered, but doesn't work when filtered).
I want to programmatically move to next item in grid view. (This is because user clicks a button that does numerous things then moves to next item).
Following code works, except when the grid view has a filter applied. Then it doesn't work, if the next item is filtered out.
Is there anyway around this. It's as if the gridview moves to the filtered item and therefore doesn't select anything.
Dim x = Me.RadGridView1.ItemsSource
Dim z As System.Windows.Data.ListCollectionView = Me.RadGridView1.ItemsSource
Dim intPos As Integer
intPos = z.CurrentPosition
Me.RadGridView1.SelectedItem = z(intPos + 1)
I've also tried z.MoveCurrentToNext (which has the same problem, works unfiltered, but doesn't work when filtered).