This example demonstrates how to obtain grid rows visible on the screeen and display them in the ListBox
.
The TopRowIndex property returns the top visible row's index. To calculate the index of the bottom visible row, get the GridControl's ScrollViewer and sum its ViewportHeight and VerticalOffset property values.
- Window1.xaml (VB: Window1.xaml)
- Window1.xaml.cs (VB: Window1.xaml.vb)