7450821

7450821

  • NA
  • 3
  • 0

Why??

Jan 20 2005 10:12 PM
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?

Answers (1)