Have a fun while searching

Friday, December 24, 2010

In grid View find from one item template to other item template field data using row command

protected void GVCustomerPlan_RowCommand1(object sender, GridViewCommandEventArgs e)
{
if(e.commandname == "xyz")
{
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
Label lblProdId = (Label)row.FindControl("lblproductId");
}
}