Author: richard112 | Posted on: 5/10/2010 10:40:55 AM | Views : 344

Hi, i have a FormView, and i already have a Label control that gets the value of theselected propery inside the FormView, so each time the FormView displays data, i have a Label control that displays individual values, according to the value of the FormView, here is the code:
protected void UserListing_ItemDataBound(object sender, DataListItemEventArgs e)
    {    
            if ((e.Item.ItemType == ListItemType.AlternatingItem) || (e.Item.ItemType == ListItemType.Item))
            {
                Label LabelRef = (Label)e.Item.FindControl("UserCount");

                DataRowView dataRow = ((DataRowView)e.Item.DataItem);
   &nb ...

Go to the complete details ...