User-153404742 posted
Hi,
So I'm setting the attribute for listItems that are then added to the dropdown when page loads based on some condition...so not all the listItems will have the same attribute as pxVal will be different for each item. I'm basically trying to make it
look like a treeview control. However, when I try to add the selected item to gridview, the postback occurs and the attribute styling is gone. So I was trying to rebind the list but I don't want to duplicate the records so I cleared the items first
and readded them to the list. The problem is, ddlControl.Items.Clear method make a linkbutton I have in a gridview control not fire. Any ideas why a rowcommand event won't fire? I'm binding the gridview on a button click event and then calling
the function to clear the dropdownlist items and repopulate it...
li.Attributes.Add("style", "padding-left:" + pxVal + ";");