c# datagridview double click on cell
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show(e.RowIndex.ToString());
}
c# datagridview double click on cell
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
{
MessageBox.Show(e.RowIndex.ToString());
}
C# Datagridview Column Header Double Click
// If you want the event to NOT work on Header Double Click
private void itemsList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if(e.RowIndex>-1)
HereIsNotHeader();
}
// If you want the event to ONLY work on Header Double Click
private void itemsList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if(e.RowIndex == -1)
HereIsHeader();
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us