Tôi có bảng như thế trong DataGridView:DataGridView Combobox di động thiết lập cột
Name Money
-------------
Hi 100 //here Combobox with member {10,30,80,100} to choose
Ki 30 //here Combobox with member {10,30,80,100} to choose
Tôi muốn thay đổi cột "Money" Giá trị từ combobox
tôi đã cố gắng với điều này nhưng không biết thêm:
DataTable dt = new DataTable();
dt.Columns.Add("Name", typeof(String));
dt.Columns.Add("Money", typeof(String));
dt.Rows.Add(new object[] { "Hi", 100});
dt.Rows.Add(new object[] { "Ki", 30});
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();
var list11 = new List<string>() { "10", "30", "80", "100" };
column.DataSource = list11;
column.ValueMember = "Money";
dataGridView1.Columns.Add(column);
tại sao nó chỉ cho tôi chỉ là cột đầu tiên? –