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

GridModel.ColStyles(1).ImageList problem

Hi, Clay! I have a very weird behavior in my project: I have a GridControl with no columns (ColCount = 0). Then I set Me.HierGrid1.ColCount = 1 In the GridModel_ColsInserted event handler I set GridModel.ColStyles(1).ImageList = myimglist where myimglist is not Nothing. And now comes the black magic: in my small tryout project it works but in the big project GridModel.ColStyles(1).ImageList remains Nothing after the assignment. Can you tell me on what properties depends if this assignment gets refused?

2 Replies

AD Administrator Syncfusion Team June 24, 2005 03:16 AM

You are using a GridControl, and not a GridDataBoundGrid, correct? After changing the rowcount or colcount, make sure you call grid.ResetVolatileData. The row/col counts can be cached for preformance considerations. In order to make sure teh grid resets any cached values, you need to call ResetVolatileData. Maybe this is why your application does not know about you changing the colcount.


AD Administrator Syncfusion Team June 28, 2005 08:44 AM

The problem was the GridControl.ReadOnly flag set to True.

Loader.
Live Chat Icon For mobile
Up arrow icon