Binding datagrid with datset from DLL

  • Thread starter Thread starter yitz
  • Start date Start date
Y

yitz

I am binding a datagrid to a dataset. The data displays fine, BUT if I
do anything that causes the grid to repaint a few times (like
scrolling the columns or even just moving the window so that part of
the grid is off the screen), then the entire application hangs.

I am binding like this:

theGrid.DataSource = AppObject1.ds.Tables[0].DefaultView ;

where AppObject1 is instantiated from a DLL like this:

AppObject1 = (IAppClass)assembly.CreateInstance("MyNameSpace.AppClass1")

I tried creating a copy of the dataset in the main program using
ds.Copy(). When I bind to this new dataset, everything works without
hanging.

Is there a problem with binding a dataset that was created in a
separate component? How can I workaround the problem without having to
copy the entire dataset?

Thanks,
Yitz
 
Back
Top