c# - Datagrid view move Scrollbar to last selected row -


i working c# , devexpress.

i have devexpress gridview around 100 records. records me backed thread. thread refresh after 30 seconds.

i showing 20 rows , vertical scroll bar appeared.

my problem .... when select 40 row, , after 30 seconds when thread works, jump top row of grid though selected other rows . scroll selected row. how this. please me.

with regards,

it seems selection cleared after refresh. so, can use gridview.toprowindex property.
here example:

//get top row index before refresh var toprowindex = gridview.toprowindex;  //refresh records  //set top row index gridview.toprowindex = toprowindex; 

Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -