private void LoadService() { InWDetail m = new InWDetail(); DataSet ds = m.GetList(" BatchID = '" + _batchID + "'"); dataGridView1.DataSource = ds.Tables[0]; }
/// <summary> /// 获取 dataGridView 的数据 /// </summary> private void LoadService() { InWDetail m = new InWDetail(); // 本项目的 Service 文件夹内的 InWDetail 类(属于 Model 层) DataSet ds = m.GetList(" BatchID = '" + _batchID + "'"); dataGridView1.DataSource = ds.Tables[0]; }