473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to make dropdownlist readonly?

139 100+
Hai all,

i want to make dropdown list to be read only. if i change the property dropdownlist.enabled=false then it is working fine but i can't able to read the text appearing in dropdown selected value.any sollution..........?

Thanks,
Aswath.
Feb 19 '08 #1
4 32222
DrBunchman
979 Expert 512MB
Hi Aswath,

You could set the background colour of the dropdownlist to something that contrasts better with the greyed out text.

Or you could set each drop down list item to be Enabled = False except the item you want to display.

Hope this helps,

Dr B
Feb 19 '08 #2
truthlover
107 100+
Another option is to set Enabled=true, but set Locked=true

Hi Aswath,

You could set the background colour of the dropdownlist to something that contrasts better with the greyed out text.

Or you could set each drop down list item to be Enabled = False except the item you want to display.

Hope this helps,

Dr B
Feb 20 '08 #3
mafaisal
142 100+
Hello

Change the Property of Dropdown style to DropdownList

Faisal

Hai all,

i want to make dropdown list to be read only. if i change the property dropdownlist.enabled=false then it is working fine but i can't able to read the text appearing in dropdown selected value.any sollution..........?

Thanks,
Aswath.
Feb 20 '08 #4
thanx guys
Sep 7 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: cashdeskmac | last post by:
I have a combobox which contains the different departments at my work place. However, if the user types another name into the combobox, it is accepted. I wish to allow only the names already...
0
by: Fei Li | last post by:
I can make it readonly or expandable but not both. Can you? Thanks
3
by: Michael SL | last post by:
I have a text area in which I have a client side javascript to process a "onclick". Because it is client side, I used a HtmlTextArea <TextArea id="Summary" onmouseup="SumMouseUp()" style="WIDTH:...
2
by: =?Utf-8?B?UmljaA==?= | last post by:
How can I make a checkbox control ReadOnly - can't check or uncheck without having to set the Enabled Property to False? VB2005 I looked at the property sheet for the Checkbox control but did...
4
by: mathewgk80 | last post by:
Hi all, I would like to know whether we can set the dropdownlist as readonly.. Please help me.. Regards, Mathew
0
by: anate | last post by:
Hi, I would like to display the treeview in windows form always expanded and readonly mode. ExpandAll() is working fine. I have set the Enabled property to false.But it's displaying the fading...
4
by: manishamca | last post by:
how to make the textbox uneditable when we click a button. I want to make the textbox uneditable when we click a button.plz help me. thanks in advance.
2
by: 7effrey | last post by:
Hi i was just wondering how i should do this: I have a dropdownlist and a datalist. The datalist will be displayed when a value is selected from the dropdownlist. But if there are no results for...
0
by: jayabalan07 | last post by:
how to make ckeditor readonly mode readonly i will set readonly="readonly"but it appears editable mode
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.