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:





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

I'm using Grid, .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.


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,


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

This page will automatically be redirected to the 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