Hi,
i am using datagrid . i want to access the controls in datatemplate of datagrid in loading row event . can u please tell me how to access the control for ex label value.
Thanks
P.Nagaraju
What is the event alternative for rowbound in datagrid
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted Sep 3, 2011, 10:31 AM EDT
Try this
foreach(GridViewRow g1 in GridView1.Rows)
{
if(g1.RowType = DataControlRowType.DataRow)
{
Label l = (Label)g1.FindControl("mylabel");
Response.Write(l.Value);
}
}
Thanks
nagaraju84 reputationPosted Sep 4, 2011, 8:19 PM EDT
Hi,
i am having textblock called
Thanks
p.Nagaraju
nagaraju84 reputationPosted Sep 4, 2011, 8:20 PM EDT