A set of .NET Framework managed libraries for developing graphical user interfaces.
Here is a sample I wrote. Please modify it to suit your requirements.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i have a textbox and a datagridview . and the following code on the textbox keydown event
case Keys.Enter:
{
datagridview1.Focus();
datagridview1.CurrentCell = datagridview1.Rows[0].Cells[0]; //
}
e.Handled = e.SuppressKeyPress = true;
break;
}
}
}
}
i have 2 problems here
dataGridView1.Rows[rowindex].Cells[columnindex].Selected = true;
or
datagridview1.CurrentCell = datagridview1.Rows[0].Cells[0];
A set of .NET Framework managed libraries for developing graphical user interfaces.
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Answer accepted by question author
Here is a sample I wrote. Please modify it to suit your requirements.