Get Cell Value of a GridView on clicking anywhere in the gridview

Posted by Bhadri under C# on 1/15/2013 | Points: 10 | Views : 1073 | Status : [Member] | Replies : 1
On double cliking any text in a row in my gridview, I need to get a particular cell's value. I do not want to use the "AutoGenerateSelectButton".
Nither do I have any kind of link of any other button in my gridview. I simply want to double click on any row and capture a particular cell's value.
If I understand correctly, to fire SelectedIndexchanged, I need to 1st create the OnRowDatabound event but I am not sure what will be the content of my OnRowDataBound Function.
My gridview is as follows-

Aid AText Date
123 add1 street1 20/10/2010

If I doublt click on "add1" , I should be able to fetch the Aid corresponding to it. Same goes for any other text in the gridview.



Posted by: Kundnani.Rt on: 2/12/2013 [Member] Starter | Points: 25

I think you have to work on
Event of Gridview Control and dynamically get the data as per selected index....

Bhadri, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response