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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
nagarajuPosted Sep 5, 2011, 12:20 AM
nagarajuPosted Sep 5, 2011, 12:19 AM
Hi,
i am having textblock called
Thanks
p.Nagaraju
Satyapriya NayakPosted Sep 3, 2011, 2:31 PM
Try this
foreach(GridViewRow g1 in GridView1.Rows)
{
if(g1.RowType = DataControlRowType.DataRow)
{
Label l = (Label)g1.FindControl("mylabel");
Response.Write(l.Value);
}
}
Thanks