Hi ntitish,
For now, please try this only if your records count is less than 30 odd.
int id = (int)GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)].Value;
for (int i = 0; i < GridView1.Rows.Count; i++)
{
if ((int)GridView1.DataKeys[i].Value == id)
{
Control ctrl = (Control)GridView1.Rows[i].FindControl("XXXXXXX");
}
}
This way you can get the control, but if your record count is too high, then will have to figure out another option due to the for loop used.
Thank you,
Vamsi