C
cgian31
I have inserted a button in a gridview, via a template column.
Using the OnClick event I want to execute some other function, but I
need to get the row for which the button was pressed.
Unfortunately the datakey field, which is what I would need, is hidden,
therefore I cannot use the following code:
GridViewRow grdRow = (GridViewRow)Button1.Parent.Parent;
string key=grdRow.Cells[0].Text;
Any ideas?
Using the OnClick event I want to execute some other function, but I
need to get the row for which the button was pressed.
Unfortunately the datakey field, which is what I would need, is hidden,
therefore I cannot use the following code:
GridViewRow grdRow = (GridViewRow)Button1.Parent.Parent;
string key=grdRow.Cells[0].Text;
Any ideas?