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

CoveredRanges

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

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon