动态修改DataTable中某列的值并绑定到DataGridView
DataTable dt = igmbll.getAllVWShopGoodsPurMas();
foreach (DataRow Row in dt.Rows)
{
Row[4] = Convert.ToDecimal(Row[4].ToString());
dgvVWShopGoodPurMas.Rows.Add(Row.ItemArray);//
}
this.dgvVWShopGoodPurMas.DataSource = dt;