DevExpress XtraGrid set FocusedRowHandle and then scroll the focused row to view?

I have an XtraGrid with ~ 500 rows in it. I can set FocusedRowHandle, say, to line 245. But is there a way that will scroll this now focused line if it is not currently visible?

DevExpress.XtraGrid.Views.Base.ColumnView vw; vw = MyGrid.DefaultView as DevExpress.XtraGrid.Views.Base.ColumnView; vw.FocusedRowHandle = 245; 
+6
source share
1 answer

Use the GridView.MakeRowVisible method for this.

+13
source

Source: https://habr.com/ru/post/891245/


All Articles