Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DevExpress XtraGrid set FocusedRowHandle and then scroll focused row into view?

I have an XtraGrid with ~500 rows in it. I can set the FocusedRowHandle to, say, row 245. But is there a method that will scroll that now-focused row into view if it's currently not visible?

DevExpress.XtraGrid.Views.Base.ColumnView vw;
vw = MyGrid.DefaultView as DevExpress.XtraGrid.Views.Base.ColumnView;
vw.FocusedRowHandle = 245;
like image 796
Tim Avatar asked Jun 23 '11 20:06

Tim


1 Answers

Use the GridView.MakeRowVisible method for this purpose.

like image 82
DevExpress Team Avatar answered Sep 18 '22 23:09

DevExpress Team