Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Event - Clicking a particular cell in the DataGrid

Status
Not open for further replies.
Mar 9, 2006
93
CA
I have a DataGrid that is populated by setting its datasource to my DataTable. When populated the DataGrid has 100's or rows and 10 or so columns. I was wondering what event to use to get the data inside the cell when the user clicks on a particular cell. I have tried using the DoubleClick event for the DataGrid but that forces you to click on the actual DataGrid and does not respond when a particular cell is clicked. Any help would be greatly appreciated. Thanks Matt
 
use the object inside the cell - ie. add a hyperlink field to the grid
 

I use DataGridView with YourGridName_CellEndEdit event.

Put
Code:
MessageBox.Show("Cell Clicked");
line and see if it fires they way you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top