Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have i structure like :

<gridview>
<Label>




and i want label value of gridview in ItemDatabound event of datalist
Posted
Comments
ZurdoDev 4-Apr-13 7:42am    
Based on the extremely limited information you have, you can try something like ((Label)e.Item.Controls[1])

Hi,

You can use the following code to find label from DataList in ItemDataBound event.
Label YourLabel= (Label)e.Item.FindControl("YourLabel");
YourLabel.Text = "Your value"

Regards,
Manoj
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900