I have a DataGridView with three columns.
I have implemented a function in the DataGridView cell click event for one cell in one row. If I click on that cell then the corresponding row values will be transferred to another form. That works.
private void dataGridView1_CellClick(object sender,DataGridViewCellEventArgs e)
{
}
My problem is that I want to implement another function for another cell being clicked in same row. Can I implement this function in same click event (as I have mentioned above) or is there another process I need to follow?
The
DataGridViewCellEventArgscan be used to determine what the position of that cell in the grid is:This way you can provide different behaviour, according to what cell is clicked.