开发者

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


Use the GridView.MakeRowVisible method for this purpose.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜