I have a ButtonField in my GridView with a CommandName, and I have a
method which I am using to capture each click of the button :
protected
void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "OpportunityDetails")
{
...
}
}
My question is, how do I get hold of any of the values within the row
that I have clicked? I want to get at the ID field of the row that I
have clicked because I need to redirect to another page which will be a
DetailsView for this particular record.
Any help would be really appreciated.
*** Sent via Developersdex http://www.developersdex.com ***