I have a list of football teams displaying in the Data Grid View Control and I want to know how I can find out what team was clicked on so I can display an appropriate form for that team. Right now when I click on an individual team the event that is called is the Cellcontent_clicked event but I don't know what team I clicked. I am new to programming in Visual Studio and C# so I would appreciate any help anyone can give me on the topic.
Thanks
sanjay dobhalPosted Apr 29, 2008, 5:57 AM
just use
datagridview1.item(datagridview1.currentcell, datagridview1.currentrow.index).value
then u can store this value .
Bechir BejaouiPosted Apr 26, 2008, 8:55 PM
example:
value = DataGridView1.SelectedCells[counter] .EditedFormattedValue.ToString();