Link to home
Start Free TrialLog in
Avatar of Raju Srivatsavaye
Raju SrivatsavayeFlag for United States of America

asked on

How to determine which cell was clicked in as ASP.NET DataGrid

Hi experts,

i have a datagrid. In each cell of my datagrid, i have one label control and a button control.
My question is, when user clicks on the button how can i determine which column is clicked?

Regards
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What type of column is the button column defined as?  ButtonColumn or TemplateColumn?

Bob
Avatar of Raju Srivatsavaye

ASKER

TemplateColumn
What do you want to do when the button is clicked?

Bob
.Net version?

Bob
when the button is clicked, i want to get the text in the first column of that row and the column number and pass those two values to my next page.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial