468,549 Members | 1,974 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,549 developers. It's quick & easy.

datagridview's rowcount in virtualmode

slg
I am using virtual mode for datagrid. After i set the rowcount property to
16000, I am receiving
datagridview 's CellValueNeeded event 16000 times for each row.
This is causing the application to hang for sometime. I am displaying only
16 rows at a time.
I am following the sample mentioned in
http://msdn2.microsoft.com/en-us/library/ms171625.aspx artile.

Can any one tell why the datagridview is quering for rows which are not
being displayed. Is this
functionality by design.

Thx

Nov 16 '07 #1
1 6535
slg
Finally i figured out, Its the column autosize properties causing the
datagrid to go over the
rest of the rows to figureout the column width. Setting this property to
false fixed it.

AutosizecolumnMode = None

Thx

"slg" <sl*@abc.comwrote in message
news:eh*************@TK2MSFTNGP06.phx.gbl...
>I am using virtual mode for datagrid. After i set the rowcount property to
16000, I am receiving
datagridview 's CellValueNeeded event 16000 times for each row.
This is causing the application to hang for sometime. I am displaying only
16 rows at a time.
I am following the sample mentioned in
http://msdn2.microsoft.com/en-us/library/ms171625.aspx artile.

Can any one tell why the datagridview is quering for rows which are not
being displayed. Is this
functionality by design.

Thx
Nov 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Chris Botha | last post: by
4 posts views Thread by gene kelley | last post: by
3 posts views Thread by Andrus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.