TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
amit_gupta14
NA
119
0
Why error:"Cannot create a child list for field TEST"
Dec 20 2004 2:23 AM
In my class1.cs file,code for oracle connection is given below: public class Class1 { OdbcConnection orcn; string stringconn; string sql; DataSet dtst; OdbcDataAdapter dataadapt; public DataSet conn() { orcn=new OdbcConnection(); stringconn="DSN=orclconn;UID=scott;PWD=tiger;DRIVER={Microsoft ODBC for Oracle}; SERVER=adidas;"; orcn.ConnectionString=stringconn; sql="select * from test"; dataadapt=new OdbcDataAdapter(sql,orcn); dtst=new DataSet(); dataadapt.Fill(dtst); return dtst; } } In Form1.cs file, under Form_Load event,I have written: Class1 cc=new Class1(); ds=cc.conn(); int t=this.BindingContext[ds,"TEST"].Count; MessageBox.Show("t=",t.ToString()); When I try to compile, the following error occurs: "An Unhandled exception................................ Cannot create a child list for field TEST" What's is this error and how to resolve it.
Reply
Answers (
1
)
Requirement using Dataset,dataadapter:Any pointer to this?
How to find the corresponding values of the other fields if value of one field is given.