Home Forums WPF controls Xceed DataGrid for WPF Force rebuild of grid

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25070 |

    I have a DataGridControl bound to a DataGridCollectionViewSource. The Source of the DataGridCollectionViewSource is a collection that doesn’t implement change notification. How do I force the DataGrid (or the DataGridCollectionViewSource) to refresh its data so the UI will update?

    Brian

    Imported from legacy forums. Posted by Brian (had 611 views)

    User (Old forums)
    Member
    Post count: 23064

    This works:

    (this.FindResource(“PaymentsDGSource”) as Xceed.Wpf.DataGrid.DataGridCollectionViewSource).View.Refresh();

    Imported from legacy forums. Posted by Brian (had 2255 views)

    User (Old forums)
    Member
    Post count: 23064

    I Have Same Problem, can anybody tell me what is “PaymentDGSource”

     

       DataGridCollectionView dv = (DataGridCollectionView)dgServer.ItemsSource; (dgServer is my gridName)
        dv = new DataGridCollectionView(_lstServer); (_lstServer) is BindingList
        dv.Refresh();
        dgServer.ItemsSource = null;
        dgServer.ItemsSource = dv;

        It Refresh the grid only first level, it break the detail relations contain in it.

       I want to refresh grid with all the relations it contains.
     

    Thanks

    Harpal 

    Imported from legacy forums. Posted by HSINGH (had 944 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.