Welcome to the Xceed Community | Help
Community Search  

Reloading the grid with new DataSet from Database.

Sort Posts: Previous Next
  •  12-01-2008, 5:02 AM Post no. 17281

    Reloading the grid with new DataSet from Database.

    Hi all,

    I have a DataGridControl in XAML. Now to load this datagrid i am creating a DataGridCollectionView in code behind and assigning the DataTable from database to this DataGridCollectionView & using DataGridControl.ItemsSource = DataGridCollectionView . As in my application the data in database keeps on changing so i want to show the new data from database. For this i am using a timer. In this timer i am again creating a DataGridCollectionView and assigning the new DataTable from database. This works fine but the problem is arrises when the user changes the coloumn width or the filltering , on relaoding instesd of taking the new widths or filters it is taking the default one , so i want to keep the user changes as it is .

     

    Thanks

     

    Filed under: , ,
  •  12-01-2008, 5:03 AM Post no. 17282 in reply to 17281

    Re: Reloading the grid with new DataSet from Database.

    sorry, I guess i put this post at a wrong place .

     

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.