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?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

yasser_8227158 reputationPosted Feb 17, 2005, 8:45 PM EST