我想使用 ado.net “无法创建字段 Physio_cureTable 的子列表”在表单加载时绑定 datagridview。错误我把我的代码粘贴在这里请给我建议或帮助
con = new SqlConnection("数据源=ADMIN\SQLEXPRESS;初始目录=PhysioCure;集成安全=true");
sda = new SqlDataAdapter("select RegisterNo,RegistrationDate,Stimulation,PationName,DateOfBirth,ContactNo,Occupation,Age,Sex,Weight,Chief_Complain,Investigation_Result,PastHistoryAny,Physical_Examination,Ref_By_Doctor,Medications,Prognosis,Electro_Therapy,Neuro_Rehabilitation,Ortho_Rehabilitation,Cardio_Pulmonery_Rehabilitation,Sports_Rehabilitation from Physio_cureTable where Syncoperation <>'D'",con);
ds = new DataSet();
sda.Fill(ds);
dataGridView1.AutoGenerateColumns = true;
dataGridView1.DataSource = ds;
dataGridView1.DataMember = "Physio_cureTable".ToString();// error coming this line