简体   繁体   中英

how to focus a particular Row in devexpress

如何在devexpress中聚焦特定行

For the ASP.NET ASPxGridView, you can use a server side or client side method called SetFocusedRowIndex.

Check this help topic for more info.

You might find this code central example useful too.

这行代码为特定的gridview(gv)设置了重点行:

this.gv.FocusedRowHandle = 0;

I believe there is a selectrow method on the xtragrid. Unfortunately I no longer have access to DevExpress to check that answer.

If you are using a bindingsource, you can select a particular row by specifying its index :

int selectedIndex = 5;
bindingSource1.Position = selectedIndex;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM