private void tlbtnSum_Click(object sender, EventArgs e) { DataSet ds = null; ds = baseinfo.BuyStockSum("tb_StockSum"); dgvStockList.DataSource = ds.Tables[0].DefaultView; }