悟生慧

 

动态修改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;

posted on 2011-06-24 15:20  悟生慧  阅读(2076)  评论(0编辑  收藏  举报

导航