Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
660
Is rebinding only one DataRecord at a time possible?
posted

 Hi everyone!

I was wondering if I could force xamDataGrid to rebind only one record (or a set of records)?

Here's what I do: The grid is used only for displaying data (data is retrieved from a remote database). Sometimes some outer actions cause minor changes in DB. And my application receives those changes, i.e. I know exactly what DataRows have been changed. But I have to rebind the whole grid for the changes to appear. And also, I lose current selection in the grid after rebind.

So, how can I rebind (edit) specific row in the xamDataGrid?

Thanks

Parents
No Data
Reply
  • 8576
    Offline posted
    Hi -
     
    The XamDataGrid use standard data source notification mechanisms to get notified when the underlying data changes. 
     
    For example, if your data rows implement INotifyPropertyChanged we will automatically pick up any changes made to individual rows.  Also, if your data source implements IBindingList and fires the ListChanged event when rows change we will also pick that up.  In both cases the XamDataGrid will refresh the display and maintain the current selection.
     
    Joe Modica
Children