我正在开发一个crm项目,它从crm中检索数据并向他们展示 ,这里我们去吧/> DataTable dt = RetrieveAttendeePersons(); DataSet ds = new DataSet(); ds.Tables.Add (dt); RadGrid1.DataSource = ds; RadGrid1.DataBind(); ,错误是:table'参数不能为null。参数名称:table,它指向以下行:ds.Tables.Add(dt); 我非常感谢你的帮助。
解决方案似乎数据表是 null , 验证表格,然后将其添加到数据集中。 if (dt!= null ) ds.Tables.Add(dt);
Hi , I am working on a crm project which retrieve data from crm and show them , here we go DataTable dt = RetrieveAttendeePersons(); DataSet ds = new DataSet(); ds.Tables.Add(dt); RadGrid1.DataSource = ds; RadGrid1.DataBind(); and the error is : table' argument cannot be null. Parameter name: table and it points to the following line : ds.Tables.Add(dt); I would really appreciate your help .
解决方案 It Seems the datatable is null, validate the table before adding it to a dataset. if(dt!= null) ds.Tables.Add(dt);更多推荐
table'参数不能为null。参数名称:表格
发布评论