G
Guest
Hi,
I've done a drag and drop of a sqlDataAdapter and generated a dataset on a
second WinForm (Form2) I'm opening as a dialog box. I can bind to it and
retrieve results but I get an error when I try to use any
BindingContext.Count/Position methods on the dataset. Any help greatly
appreciated.
Error: 'Cannot create a child list for field myTable.'
Code Snippet Follows:=======================================
try
{
int iCnt;
iCnt = this.BindingContext[this.dsDataSet1, "myTable"].Count;
}
catch(Exception exp)
{
MessageBox.Show(exp.Message.ToString());
}
I've done a drag and drop of a sqlDataAdapter and generated a dataset on a
second WinForm (Form2) I'm opening as a dialog box. I can bind to it and
retrieve results but I get an error when I try to use any
BindingContext.Count/Position methods on the dataset. Any help greatly
appreciated.
Error: 'Cannot create a child list for field myTable.'
Code Snippet Follows:=======================================
try
{
int iCnt;
iCnt = this.BindingContext[this.dsDataSet1, "myTable"].Count;
}
catch(Exception exp)
{
MessageBox.Show(exp.Message.ToString());
}