We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual mode vs Non Virtual mode

Thread ID:

Created:

Updated:

Platform:

Replies:

69785 Nov 12,2007 02:26 PM UTC Nov 12,2007 06:46 PM UTC WinForms 2
loading
Tags: GridControl
Qingde Shi
Asked On November 12, 2007 02:26 PM UTC

Hi,

How to tell a GridControl was being used in virtual mode (QueryCellInfo handled) or non virtual mode?

In my derived GridControl, I need to know the grid if in virtual mode or not.

Thanks.

Q


haneefm [Syncfusion]
Replied On November 12, 2007 06:10 PM UTC

Hi Q,

One way you can determine the pure virtual grid by checking the Data.Rows.Count property. In a typical virtual grid this property will usually be 0: Below are the codes:

if( this.gridControl1.Data.Rows.Count ==0 )
Console.Wrilteline("Virtual Grid");
else
Console.Wrilteline("Non Virtual Grid");

Because no cells were saved directly in the Data object.

Best regards,
Haneef


Qingde Shi
Replied On November 12, 2007 06:46 PM UTC

Haneef,

Thanks. That does the trick.

Q.

>Hi Q,

One way you can determine the pure virtual grid by checking the Data.Rows.Count property. In a typical virtual grid this property will usually be 0: Below are the codes:

if( this.gridControl1.Data.Rows.Count ==0 )
Console.Wrilteline("Virtual Grid");
else
Console.Wrilteline("Non Virtual Grid");

Because no cells were saved directly in the Data object.

Best regards,
Haneef




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;