msg_btype = (this.dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[9] as DataGridViewComboBoxCell).Value.ToString();
展示的为数据库中对应列的值
其中msgds为dataset格式,数据为从数据库中取出
for (int g = 0; g < msgds.Tables[0].Rows.Count; g++)
{
dataGridView1.Rows[g].Cells["Column10"].Value = msgds.Tables[0].Rows[g]["BOUNDARY_TYPE"].ToString();
}