Menu

#15 Event FormatCell is not called

v2.X
accepted
5
2018-09-03
2018-08-29
Chaftalie
No

At first a big THANK You for making such an amazing Project and making it available for us all for free!

Unfortunately I have a little Problem that I cannot wrap my head around to fix it...
My problem is that for some reason the event FormatCell does not get called at all.

I want to make something like the missing field from
http://objectlistview.sourceforge.net/cs/recipes.html#how-can-i-put-an-image-or-some-text-over-the-top-of-a-row-or-cell

I've put my Test Project on github so I do not spam here with miles of Code.
https://github.com/Chaftalie/ObjectListView_Tets

I hope you can help me or at least give me the right direction to where to search for the solution.

~Chaftalie

Discussion

  • Phillip Piper

    Phillip Piper - 2018-09-01

    By default, ObjectListView doesn't fire FormatCell events. This is a performance optimization -- perhaps ill thought out, I admit :)

    To force ObjectListView to fire FormatCell events for all cells in the list, set UseCellFormatEvents to true.

    In truth, I should do something more intelligent. If there are subscribers for FormatCell events, I should fire the events.

     
  • Phillip Piper

    Phillip Piper - 2018-09-01
    • status: open --> accepted
     
  • Chaftalie

    Chaftalie - 2018-09-03

    Thanks for that quick and informative Answer!

    Mabe you could add this to your Tutorial if its not already there and i just did not saw it...

    ~Chaftalie

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.