This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, Let's say I have a datatable.DefaultView that is source of DataGrid.ItemsSource. Since the data table is updated from work thread, so I am using the timer to update the DataTable from UI thread to make sure all the new records/rows are displayed in the DataGrid. It works well with improved datagrid that Jason made. But We have problem, If I group one column header by dragging it to top of the datagrid. the grouping is not kept between consecutive timer events. Since we are doing DataGrid.ItemsSource = null and DataGrid.ItemsSource = DataTable.DefaultView on the timer events. My questions are: Can we have function from DataGrid.GetGroupings() and datagrid. Grouping(ColumnName)? or something similar? So I can keep the grouping. Thanks Gordon |
|
|
Hello Gordon You can read and edit the DataGrid.GroupedColumns collection. You'll need to pass in the actual DataGridColumn though, not just the column name. Jason Fauchelle |
|