CreateCell event cellelement is always null

35 posts, 3 answers
  1. LLC
    LLC avatar
    17 posts
    Member since:
    Nov 2010

    Posted 16 Nov 2010 Link to this post

    Thanks Emanuel. This time it's working 100% sure. The problem is (or maybe is a misunderstanding mine) if you read in CellFormating e.cellelement.tag is nothing but however if you read
    e.cellElement.rowInfo(e.cellElement.columnIndex).Tag (If I'm mistaken someone to correct me but it's the same cell (OK?) so it should have the same value in Tag property) gives the value I'm expecting (true or false).

    Thanks again.
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 16 Nov 2010 Link to this post

    Hello again LLC,

    It was my fault because i should have attached an example but lately I've been extremely busy (sorry again).

    The thing is this, the CellElement is not the same thing as the CellInfo, please take a look at this article, or this more detailed article for further clarifications about the GridVirtualization engine.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
    Telerik WinForms MVP
  3. LLC
    LLC avatar
    17 posts
    Member since:
    Nov 2010

    Posted 16 Nov 2010 Link to this post

    Thanks Emanuel. No problem. So they aren't the same object, that explains it. I didn't read enough well the articles the first time you and Richard told me about them. After this fight I understand better radgridview virtualization and its implications.

    Thanks again.
  4. Bashir
    Bashir avatar
    1 posts
    Member since:
    May 2011

    Posted 14 Nov 2015 Link to this post

    if i use the cellformating, gidview be very slow,becouse this even raise more than on or two number.
  5. Dimitar
    Dimitar avatar
    1871 posts

    Posted 16 Nov 2015 Link to this post

    Hello Bashir,

    Thank you for writing.

    Yes, the event is fired several times. However, if you are only setting the cell styles in it there should not be any performance impact. Could you please share the code that you are using in this event? Are you performing any time-consuming operations in it? 

    I am looking forward to your reply.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top