Home Forums WinForms controls Xceed Grid for WinForms Previous/Next Row Reply To: Previous/Next Row

User (Old forums)
Member
Post count: 23064

– get the <b>visible</b> index, like this: grid1.GetSortedDataRows(true).IndexOf(grid1.CurrentRow)
– the row above: if visible index > 0 then rowAbove = grid1.GetSortedDataRows(true)[index – 1]
– the row below: if visible index < grid1.GetSortedDataRows(true).Count – 1 then rowBelow = grid1.GetSortedDataRows(true)[index + 1]

Imported from legacy forums. Posted by Tommy (had 2986 views)