DataGridView with Virtual mode and Bound DataSource

  • Thread starter Thread starter Richard Charts
  • Start date Start date
R

Richard Charts

After searching the forums, newsgroups, and web, I cannot seem to find
a straight answer.
Is it possible to use a bounded datasource in virtual mode on a
datagridview?

I would like to have the dgv have over 1000 rows. Currently, the dvg
simply cannot handle this.
I, of course, only need 20-50 rows shown at a time.

While I will go to unbounded virtual mode if I have to, it seems like
there should be a more simple method.

If I do need to to unbounded, virtual mode, how do I limit the rows
shown on screen. When I have tried before all the rows were still
trying to load and I could never scroll down.

Thank you.
 
Richard,

Can you show the code you are using for virtual mode? It should be as
easy as setting the VirtualMode property to true and then handling the
CellValueNeeded event (along with others). You might want to look at the
section of the MSDN documentation titled "How to: Implement Virtual Mode in
the Windows Forms DataGridView Control", located at:

http://msdn2.microsoft.com/en-us/library/2b177d6d.aspx
 

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

Back
Top