Select to view content in your preferred language

Sizing a slData:DataGrid that is  linked to a list of varying length...

988
0
09-04-2013 12:27 PM
YurongTan
Regular Contributor
Doese anyone have an idea how to get the dimension parameters (width and height) of a DataGrid that is linked to a dynamic list with varying length?  I am thinking about "Reloading" the DataGrid each time when the list is changed, but am still out of luck so far. 

Even though the data on mylist does show up in the DataGrid view, "myDataGrid.ItemsSource = mylist;" does not change the size of the grid, especially when a new list becomes shorter.  It looks like the "size change" of the DataGrid happens after the display. 
Any pointers, clues, or samples out there? 

Thanks
Yurong Tan
VAOIG
0 Kudos
0 Replies