In web applicatiom i am trying to find grid controls in RowDataBound event. But it is giving object reference to instance of an object, this is my code :
protected void mygrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
string empid = "";
empid = ((Label)e.Row .FindControl("lblname")).Text;
}
Can you hlep me please to find the control, thank you.
Label lblprop_img_id = (Label)e.Row.Cells[2].FindControl("lblprop_img_id");