ScrollBar

A

Angelo

hi,

I have a problem with using ScrollBar.In my form there is a DataGrid which
has a ScrollBar. When I add a new row to my DataSet , this ScrollBar goes to
end .Now with a button clicking, I add another row to my DataSet , at this
time I
want this ScrollBar goes to first .How can i send the DataGrid ScrollBar to
first
point of DataGrid (when it is at the end)?



Regards
 
S

Saravana [MVP]

Set your focus to the first item in the datagrid after button click. Scroll
bar should come to the top.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,158
Latest member
Vinay_Kumar Nevatia
Top