Wednesday, February 22, 2012

How to add separator or section barker in to Dropdown c# Asp.net

Yes,You can do it in different ways..I think simple makes life easy so follow this,
Add a list item in to dropdow disabled!!


ListItem separator = new ListItem("--------------------------------", "");
            separator.Attributes.Add("disabled", "true");


DropDownID.Items.Add(separator);


Chaeers! easy ha!:)

No comments:

Post a Comment