开发者

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

开发者 https://www.devze.com 2023-03-15 05:06 出处:网络
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?

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.D开发者_运维问答efaultView as DevExpress.XtraGrid.Views.Base.ColumnView;
vw.FocusedRowHandle = 245;


Use the GridView.MakeRowVisible method for this purpose.

0

精彩评论

暂无评论...
验证码 换一张
取 消