1
How can I use the event DataGridView.CellClick to click a single column?
The way I did in my code if I click any part of the datagrid it does the action, and I didn’t want it to be this way I want to click one and a specific column and perform the action.
Follow my event code:
private void DGW_chklist_CellClick(object sender, DataGridViewCellEventArgs e)
{
    DataGridViewRow row = this.DGW_chklist.Rows[e.RowIndex];
    this.txt_nota.Text         = row.Cells[1].Value.ToString();
    this.txt_cliente.Text      = row.Cells[2].Value.ToString();
    this.txt_transp.Text       = row.Cells[3].Value.ToString();
    this.txt_volume.Text       = row.Cells[4].Value.ToString();
    ncheklist();
    if (txt_dtinicial.Text != "")
    {
        consultartransp();
    }
    else
    {
        MessageBox.Show("Erro");
    }
}
Thank you very much gave it right here.
– Junior Guerreiro