Update DataGridColumn width programmatically RRS feed

  • General discussion

  • Guys,

    My scenario is an webapp with Silverlight 5.

    I have a DataGrid and its defined DataGridColumn width are setted with "SizeToHeader" value.

    During the program execution, the column header value is changed but the column width stay the same. 

    Anybody knows how can I make DataGridColumn evaluate its own width after I change its header value?

    Thanks in Advance,


    Thursday, July 5, 2012 7:12 PM

All replies

  • Hi saulo,

    Just set width is auto then it will expand the size automatically...

    Friday, July 6, 2012 5:16 AM