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
remains Nothing after the assignment.
Can you tell me on what properties depends if this assignment gets refused?
ADAdministrator 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.
ADAdministrator Syncfusion Team June 28, 2005 08:44 AM
The problem was the GridControl.ReadOnly flag set to True.