dataGridView1.Columns
#region 读取用餐相关信息
private void user_ca(string card, string user_sn)
{
//Model.catering model1 = new Model.catering();
//DAL.Icatering bll1 = new DAL.Icatering();
DAL.icater bll1 = new icater();
DataSet ds = bll1.getmodel(card);
if (ds!=null )
{
dataGridView1.DataSource = ds;
this.dataGridView1.Columns[0].HeaderText = "工号";索引超出范围。必须为非负值并小于集合大小。
参数名: index
??
[最优解释]
dataGridView1.DataSource = ds;改为:
dataGridView1.DataSource = ds.Tables[0];
[其他解释]
+1
[其他解释]
UP....ren