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
2690
unboundcolumn in groupcolumn
posted

If unboundcolumn is in a groupcolumn which needs to be changed dynamically giving this

e.Cell.Row.Cells["fieldxx"].Refresh();

gives null exception

if that unbound column is brought out of the groupcolumn it works perfectly, how to handle this?

Parents
No Data
Reply
  • 6912
    Suggested Answer
    posted

    In this case you can use this approach to get to the cell and call Refresh():

    var column = this.XGrid.Columns.AllColumns["fieldxx"] as Column;
    
    if (column != null)
    {
        e.Cell.Row.Cells[column].Refresh();
    }
    
    

    In the code above XGrid is my XamGrid instance.

    Hope this helps

Children