I haven't had much luck with the checking/removing constraints still. If i were to resort back to the "reset" option for the dataset, do you have any words of wisdom in that arena? I found an issue similar to mine on another board, but i wonder if this would work for me if it were "adapted" to VB???
**********
I have a global dataset object ds that is populated by using
ds.readXml(fileName) in a procedure, then bound to a Windows.Forms.DataGrid.
Everything is OK so far. The data shows on the dataGrid. But the second time
the same procedure is called, nothing shows up on the dataGrid and no error
messages. Everytime, before the dataset is popluated, it is reset by using
ds.reset ( I also did ds.clear(), and ds.Relations.Clear() to make it
cleaner). Also by debugging it, I can see the ds has the same XML string the
second time by using ds.getXml. And if I bind the DataGrid using a copy
like the following:
dataGrid1.SetDataBinding(ds.Copy, "Entry")
Everything is working.
What's going on here?
(REPLY)
I suspect the data binding is not updated timely after you repopulate the
DataSet. To workaround it, you may refresh the binding with the original
DataSet:
Object source = dataGrid1.DataSource;
dataGrid1.DataSource = null;
dataGrid1.DataSource = source;
I hope this helps you.
***********