Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
495
Redraw row after changing datatype of a cell
posted

In my datagrid I'm hosting WPF controls as you described here: http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx

Let's assume:

Column A: (type string)

Column B: (type myBaseType  --> could be myConcreteTypeX or myConcreteTypeY)

Because the datatype of column B can be different in different rows, I set up my editors/rederers in OnInitializeRecord which depend on the concrete types.
Depending on the value in A (changeable), my underlying collection replaces a row with the new datatype for B. Unfortunately the grid seems just to ReInitialize my row, not allowing me to set the appropriate controls (editors/rederers) because of sealed setters...

How can a force the grid to redraw (delete old and add new) row in my grid?

  • 138253
    Offline posted

    Hello Dunken,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I suggest you look into this forum thread:

     

    http://community.infragistics.com/forums/t/47550.aspx

     

    which discusses the same issue as yours.

     

    Feel free to write me if you have further questions.