c# datagridview cell click event

85

datagridview mouse click event c# -

    public event DataGridViewCellMouseEventHandler CellMouseClick;

    private void DataGridView1_CellMouseClick(Object sender, DataGridViewCellMouseEventArgs e)
    {
        MessageBox.Show("Mouse clicked in the datagridview!");
    }

datagridview mouse click event c# -

DataGridView1.CellMouseClick += DataGridView1_CellMouseClick;

Comments

Submit
0 Comments