SoFunction
Updated on 2025-03-04

Get index value sample code in RowCommand event


protected void lpg_RowCommand(object sender, GridViewCommandEventArgs e)

{

if ( == "ItemCollect")
{
GridViewRow gvr = (GridViewRow)(((LinkButton)()).NamingContainer);
LinkButton lk = [].FindControl("lbtnCollect") as LinkButton;

}

}