Why??
public DataSet GetClass()
{
SqlConnection myConnection=new SqlConnection(ConfigurationSettings.AppSettings["connectionString"]);
SqlDataAdapter countCmd=new SqlDataAdapter("select *,(select count(*) from Class where ParentId=g.SubId) as nCount from Class g",myConnection);
DataSet dstClass=new DataSet();
countCmd.Fill(dstClass);
return dstClass;
}
DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name nCount.
why?
Is anybody could help me?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

prasannav28102 reputationPosted Feb 9, 2005, 12:07 AM EST
jinwolfRank #7,492 · 240 reputationPosted Feb 10, 2005, 1:57 AM EST
ashug12 reputationPosted Feb 15, 2005, 2:35 AM EST