L
Laura Stern
Guest
First you should not be detaching the grid from the data source and then reattaching it. A lot goes on behind the scenes when you do that, that you don't want to be happening. And you shouldn't need that update and refresh of the grid either, not the creation of a new BindingSource. In order to see the new set of records in the Grid, you need to reopen the query so that the new set of rows is in the result set. That should do it. If not, you can call RefreshAll() on the BindingSource which broadcasts to the grid to re display. But using the default BindingSource settings you shouldn't need that. So, you only need to make the BindingSource once, attach it once, and then reopen the query whenever there is a new set of rows.
Continue reading...
Continue reading...