仮想モードの DataGridView があります。http://msdn.microsoft.com/en-us/library/15a31akc.aspxで説明されているように、CellValueNeeded イベントハンドラーのみを実装しました。
残りのイベントの実装は、セルを手動で編集できるようにする場合にのみ必要と思われます。
DataGridView セル値をプログラムで編集したいと思います。
次のコードを使用してこれを試しました。
DataGridView1.EditMode = DataGridViewEditMode.EditProgrammatically;
DataGridView1.BeginEdit(false);
DataGridView1.Rows[0].Cells[0].Value = "testing new value";
//just using a random parameter here, not sure it is needed when editing programmatically
DataGridView1.CommitEdit(DataGridViewDataErrorContexts.LeaveControl);
DataGridView1.Refresh();
しかし、成功しません:(
任意の助けをいただければ幸いです