public void User_Click_detail(object sender, EventArgs e)
{
LinkButton LB = (LinkButton)sender;
GridViewRow Grid1 = (GridViewRow)LB.NamingContainer;
... int indexid = Convert.ToInt32((GridView1.DataKeys[Grid1.RowIndex].Values[0].ToString()));
//perform CRUD on based on indexid value
}
Saturday, September 11, 2010
Getting GridViewRow Value on Button Click Event
Tags
Asp.net
,
C#
,
DataKeyNames
,
FindControl
,
gridview
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment