string path = @"SQL";
string sql = ReadXmlStringFromFile("feedbackrecord.txt", "\r\n", path);
DataSet ds = new DataSet();
ds = SqlHelper.ExecuteDataset(connstr,CommandType.Text,sql);
想将查询结果显示到 dataGridView1 中,怎么样写呢?调用sqlhelper 类 实现 越简单越好
你这数据不是已经写到DataSet里面了吗?接下来写一句绑定数据就完了
dataGridView1.DataSource = ds.Tables[0].DefaultView;
你的SQLHelper里面怎么写的 没有SqlDataAdapter 相关的查询方法?