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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





10147 Jan 23,2004 09:31 AM UTC Jan 23,2004 10:47 AM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On January 23, 2004 09:31 AM UTC

I am adding two columns, at the end, my grid at runtime .. and want to cover the cells, only on row zero the header, of the two columns. This works fine for the first two columns I add but columns after that the cells are not being covered. Sample Code: Me.GridDataBaseConditions.Model.CoveredRanges.Add(GridRangeInfo.Cells(0I, Me.GridDataBaseConditions.Model.ColCount + 2I, 0I, Me.GridDataBaseConditions.Model.ColCount + 3I)) Thanks, Rob

Administrator [Syncfusion]
Replied On January 23, 2004 09:53 AM UTC

Clay, Figured this one out .... by problem was ColCount was return 0 ... Me.GridDataBaseConditions.GridBoundColumns.Add(gridColumn) ColCount is still zero ... when does grid.Model.ColCount get updated? Rob

Administrator [Syncfusion]
Replied On January 23, 2004 10:47 AM UTC

After adding the columns, try calling grid.Model.ResetVolatileData to make sure any cached values of ColCount are reset.


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

Live Chat Icon For mobile
Live Chat Icon