I have a Datagridview which populates caller number and called number, upon selecting the two column values, and click a button a message box should display the selected column values. How this can be achieved. Any sample code would be of great help.
I have a Datagridview which populates caller number and called number, upon selecting the
Share
You should take a look at DataGridView’s SelectedCells property. Your button click method can do something along those lines then:
This will display all values of selected cells in message box.