如何更改DataGridView
Windows 窗体中所有单元格的值?我想直接在 Windows 窗体中进行更改,比如直接在单元格中输入
我有一张像这样的桌子:
AA BB CC
--------------
1 aa ac
2 bb fd// I type here and change the value to kk
代码:
DataGridViewTextBoxColumn AA= new DataGridViewTextBoxColumn();
MsgIDHex.HeaderText = "AA";
MsgIDHex.DataPropertyName = "AA";
DataGridViewTextBoxColumn BB= new DataGridViewTextBoxColumn();
MsgIDHex.HeaderText = "BB";
MsgIDHex.DataPropertyName = "BB";
DataGridViewTextBoxColumn CC= new DataGridViewTextBoxColumn();
MsgIDHex.HeaderText = "CC";
MsgIDHex.DataPropertyName = "CC;
dataGridView1.DataSource = result;
dataGridView1.Columns.AddRange(AA, BB, CC};
我应该做些什么DataGridViewTextBoxEditingControl
吗?