"childlist for the field A cannot be created" --error for below code..
Posted By: Jayakumar Posted Date: March 04, 2010
Points:2 Category :Windows Application
in my windows application (form1.cs), i am having this code under Buuton1_click event.
i am using 3.5,c#.
String connStr = "Data Source=HOME\\SQLEXPRESS;Initial Catalog=DB;Persist Security Info=True;User ID=sa;Password=sa";
String sql = "Select SongId, SongTitle, FilmTitle from A";
SqlConnection conn = new SqlConnection(connStr);
SqlCommand com = new SqlCommand(sql, conn);
SqlDataAdapter da = new SqlDataAdapter(com);
DataSet ds = new DataSet();
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "A";
getting error like "childlist for the field A cannot be created"
how to solve this...
You must Sign In To post reply