Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i have a education table..
.
bachelor-master degree - education details and its all education degree load from education table
but i wan to divivde in to bachelor-master-deploma-highschool.
.
how to disable this text..not selectable in dropdownlist
.
--------bachelor-degree------
Advertising/ Marketing
Architecture
Armed Forces
Arts
------master--------------
Commerce,Computers/ IT
Engineering/ TechnologyFashion
------bachelor-----------
Finance
Fine Arts
Home Science
---------master----------
Law
Management
.
can you tell me that how to do this ???
Posted
Comments
astika 26-Feb-14 7:22am    
dont make speling mistakes!

1 solution

Try this:

ddl.Items[0].Add("--------bachelor-degree------").Attributes.Add("disabled", "true");
 
Share this answer
 
Comments
Manish Dalwadi 26-Feb-14 8:04am    
no dr...
not this i want.
my details display from database table.
then i want to add this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900