Virtual mode vs Non Virtual mode

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


2 Replies

HA haneefm Syncfusion Team 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



QS Qingde Shi 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




Loader.
Up arrow icon