txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["name"].ToString() ;
txtname.Text =ds.Tables[0].ds.Tables["details"].Rows[0]["roll no"].ToString() ;
please specify the row no like zeroth ..
I have written like this but it shows column name into the textboxes.
means it is showing name & roll no in textboxes instead of data values.
txtname.Text =ds.Tables[0].Columns["name"].ToString() ;
txtroll.Text= ds.Tables[0].Columns["roll no"].ToString() ;
OR
txtname.Text =ds.Tables["deatail].Columns["name"].ToString() ;
txtroll.Text= ds.Tables["detail"].Columns["roll no"].ToString() ;