Greg Robinson's Blog

I report it, you decide

Click Once

Custom Authentication in Windows Forms

DataBinding Stuff

Favorite Links

My book contribution

My Book Reviews

My Personal Life

Richmond, VA .NET Users Group

Smart Client Stuff

What I am reading

VirtualMode and DataGridView

The new DataGridView control allows you to run the control in VirtualMode.  This is a feature if you will (sounds like a nightmare to me) where one can show thousands or even millions of rows in a grid and avoid the performance\memory hit.

Long story short, you tell the control to run in VirtualMode and then, as the user scrolls down the grid (as cells are painted\displayed) you can handle the CellValueNeeded (provide a value for a cell when it's rendered versus holding all the data in memory)  and CellValuePushed (if you want to support editing) .  I only hope developers carefully consider what they are doing when they use this feature.  Or, for that matter, carefully considering presenting thousands or millions of rows in a tabular fashion at one time. 

If I am ever on a project where I need to display thousands of rows, or millions, please shoot me, or better yet, shoot the customer  ;-)

 

 

 

Comments

Bil Simser said:

Here here. I always get banged upside the head by customers when they say "Well, 100 rows of information isn't enough" and they want 10,000 on a single HTML page. Uh yeah, pass the gun.
# June 30, 2005 5:00 PM

Jon Galloway said:

What about Outlook? The mailbox listbox (actually a SuperGrid) preview works in virtual mode, and I think that's a very good thing.

I wish the RssBandit grids worked in Virtual Mode.
# June 30, 2005 7:59 PM

Odetta said:

Badly need your help. It is hard to fight an enemy who has outposts in your head. Help me! Looking for sites on: Stock market day trading software. I found only this - <a href="www.fabrikant-records.net/.../how-to-stock-trade">how to stock trade</a>. Becoming metal was great under some dealers, stock trading. Levels can get stocks up and down, parameters are even only essentially new as they stick, and the emotions for nature and trading are seldom many, stock trading. With respect :confused:, Odetta from Guinea.

# March 25, 2010 12:39 AM

weblogs.asp.net said:

416889.. Slap-up :)

# June 12, 2011 4:33 AM

Hifni said:

Great Article! I got it clarified by reading this. Thanks!

# May 25, 2012 5:26 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)