D
Darryn Ross
Hi,
I am trying to bind a dg to a query but i keep getting the following error
message.. 'Cannot create a child list for field "MyQuery"'.
My code is as follows...
Ds.Clear() ;
Connection.ConnectionString = ConnectionPath ;
Connection.Open() ;
//Establishing the database connection and loading the datagrid
SelectCommand.CommandText = "MyQuery" ;
SelectCommand.Connection = Connection ;
SelectCommand.CommandType = CommandType.StoredProcedure ;
Adapter.SelectCommand = SelectCommand ;
Adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey ;
Adapter.Fill(ChartLstDs) ;
dg.SetDataBinding(Ds, "MyQuery") ; //Error occurs here???
Regards
Darryn
I am trying to bind a dg to a query but i keep getting the following error
message.. 'Cannot create a child list for field "MyQuery"'.
My code is as follows...
Ds.Clear() ;
Connection.ConnectionString = ConnectionPath ;
Connection.Open() ;
//Establishing the database connection and loading the datagrid
SelectCommand.CommandText = "MyQuery" ;
SelectCommand.Connection = Connection ;
SelectCommand.CommandType = CommandType.StoredProcedure ;
Adapter.SelectCommand = SelectCommand ;
Adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey ;
Adapter.Fill(ChartLstDs) ;
dg.SetDataBinding(Ds, "MyQuery") ; //Error occurs here???
Regards
Darryn