PC Review


Reply
Thread Tools Rate Thread

datagridview's rowcount in virtualmode

 
 
slg
Guest
Posts: n/a
 
      16th Nov 2007
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



 
Reply With Quote
 
 
 
 
slg
Guest
Posts: n/a
 
      18th Nov 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataRepeaters in virtualmode Huggyboy101 Microsoft Dot NET Framework Forms 0 14th Nov 2008 11:42 AM
DataGridView.RowCount setting is slow Andrus Microsoft C# .NET 3 28th Oct 2008 10:24 AM
dataGridView.Rows.Count and datagridview.RowCount SePp Microsoft C# .NET 1 15th Jan 2008 10:27 AM
ListView in VirtualMode =?Utf-8?B?Y2ps?= Microsoft Dot NET Framework 7 20th Oct 2006 04:22 AM
VirtualMode for DataGrid arjunsingri Microsoft Dot NET Compact Framework 2 5th Oct 2006 03:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 AM.