Disable (Auto)Scroll for a DataGridView


P

Paul Schwann

Hi Group,

I am using C# with .NET 2.0 and Visual Studio 2005. I have a GUI with
a DataGridView (DGV) and a BindingSource for the data. The data are
added programmatically, up to 5 rows per second.

My question are:

How do I disable the automatic scrolling of the DGV? It seams that
each time I add a new data record, DGV scrolls to the position of that
new record.

How do I prevent the DGV from keeping the position of a selected row
(each time I add a new record, the DGV scrolls back to the selection).

What I want at the end is a DGV which shows a scroll bar but does not
do ANY automatic maintenance of it. The user alone shall decide what
portion of the DGV is shown even if the data are added, removed
selected or what else...

Thanks for any ideas!

Regards,
Paul
 
Ad

Advertisements

R

Robert

"What I want at the end is a DGV which shows a scroll bar but does not
do ANY automatic maintenance of it. The user alone shall decide what
portion of the DGV is shown even if the data are added, removed
selected or what else..."

thats what I search for too. I thougt about adding my own Scrollbar to
tzhe grid, have You any advice?
 

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

Top