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
275
Updated DataSource giving weird results
posted

I have a XamDataPresenter on a tab which has it's DataSource set to a DataTable.DefaultView.  The DataTable is set when the user selects the tab that the grid is on.  The DataTable is also set when when a button on that tab is clicked (to update the data) - that works.  However, when a different tab is selected and then the tab with the grid is selected again, the grid has extra empty record and the scrolling is out of whack...  Is there a different way that I should be updating the DataSource? 

When the DataTable is updated I set DataSource to null then reassign DataSource to DataTable.DefaultView.  Just reassigning the DataTable did not work in either cases mentioned above.

Thank you,
Mike