remove row using onitemdatabound
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have a repeater displaying repeated rows, trying to figure a way to keep the first appearence and remove the next but it is not working how can i detect a first ocurrence of a record and add a e.Item.visible = false here? if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { if (Convert.ToString(((Label)e.Item.FindControl("itemselected")).Text) != "") { ((CheckBox)e.Item.FindControl("selectitem")).Checked = true; } //fstk.STOCK_ID as fsselected if (Convert.ToString(((Label)e.Item.FindControl("fsselected")).Text) != "") { ((CheckBox)e.Item.FindControl("selectitem")).Checked = true; ((CheckBox)e.Item.FindControl("selectitem")).Enabled = false; }