private void tlbtnAllBuyStock_Click(object sender, EventArgs e) { DataSet ds = null; ds = baseinfo.BuyAllStockAnalyse("tb_warehouse_detailed"); dgvStockList.DataSource = ds.Tables[0].DefaultView; this.SetdgvStockListHeadText(); }