I'm binding a DataView to a GridDataBoundGrid. The DataView is a dependency of a parent object.
As I go from record to record for each parent object the GridDataBoundGrid's BindSource is set to the DataView, but for some reason only the first parent object shows the data on the grid. Everything after the first parent object causes the GridDataBoundGrid to not redraw or repaint the grid, the grid just freezes and shows data from the first parent object I selected. Below is an example of how the grid is being set:
Grid.BeginUpdate();
List = _salesOrders;
Grid.BindSource = List;
Grid.EndUpdate();
I can't track down why this is happening but I'm attempting to redraw the grid each time I go record to record for each parent object to avoid the grid from freezing. I tried using the DrawGrid() method like so:
Grid.DrawGrid(Grid.CreateGridGraphics());
But while this did actually refresh the grid, the grid was still frozen and I had to do a lot of extra clicking around for the grid to become functional.
Can you help me resolve this?
Thanks,