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.
Unfortunately, activation email could not send to your email. Please try again.

Why the cell values of virtual grid cannot be changed as like normal grid?

Problem

In GridControl, by default virtual grid will bind initially 10 rows and 10 columns, only those cells can be accessed initially. So if 11th row cell is trying to access, then the ArgumentOutofRangeException will be thrown.

Solution

If you want to set the data to grid as virtual, then we can use the QueryRowCount, QueryColCount events to define the row and column count.

The values for the cells can be populated from and saved to the datasource using, the QueryCellinfo and SaveCellInfo events.

C#

 

VB

 

 

Sample links:

C#: VirtualGrid_CS

VB: VirtualGrid_VB

 

 

               

Article ID: Published Date: Last Revised Date: Platform: Control:
5934 01/03/2016 05/13/2016 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.