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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridModel.ColStyles(1).ImageList problem

Thread ID:

Created:

Updated:

Platform:

Replies:

30801 Jun 24,2005 07:14 AM UTC Jun 28,2005 01:44 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 24, 2005 07:14 AM UTC

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?

Administrator [Syncfusion]
Replied On June 24, 2005 08:16 AM UTC

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.

Administrator [Syncfusion]
Replied On June 28, 2005 01:44 PM UTC

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

CONFIRMATION

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.

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

;