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

ColStyles property in a virtual grid

Thread ID:

Created:

Updated:

Platform:

Replies:

60695 May 10,2007 07:23 AM UTC May 10,2007 05:39 PM UTC WinForms 1
loading
Tags: GridControl
Ben Fraser
Asked On May 10, 2007 07:23 AM UTC

I'm using Grid 4.4.0.51, .NET 2.0

I'm using a virtual grid. I change the amount of data in the backing array and update my variable so that queryColCount returns the new number of cols.

After this I assign to the ColStyles at an index below the number of columns in the grid. I get an exception thrown about index out of bounds.

Shouldn't the number of items in colstyles be getting bigger when queryColCount returns a larger value?

If it matters, the column count has increased from 0 to 16 just before the exception occurs.

Cheers,
Ben

haneefm [Syncfusion]
Replied On May 10, 2007 05:39 PM UTC

Hi Ben,

If you want to use the grid's internal storage, you would need to set the column count on the grid's Data object.

this.gridControl1.Model.Data.ColCount = newvalue;

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.

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

;