Home
Manage Your Code
Snippet: Controls in Gridview (C#)
Title: Controls in Gridview Language: C#
Description: Find GridView's controls in ItemDataBound event Views: 140
Author: Jukka Kotamäki Date Added: 11/5/2008
Copy Code  
1if (e.Item.ItemType == ListItemType.Item
2|| e.Item.ItemType == ListItemType.AlternatingItem)
3{
4      Control control1 = e.Item.FindControl("MyControlID");
5      if (control1 != null)
6      {
7          
8      }
9 }