I have readonly datagridview, I need in some specific case enable one cell after doubleclicking row (make readonly=false and make focus on this specific cell in current row (like entering it – the cursor should start to blink).
I have:
private void dataGridView1_DoubleClick(object sender, EventArgs e)
{
dataGridView1.Cells[3].ReadOnly = false;
}
But it doesn’t work. Why?
Try to set the currentcell of the Datagridview and call BeginEdit
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.beginedit.aspx