473,387 Members | 1,517 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,387 software developers and data experts.

ddlb clearing

Depending on the month selected elsewhere I show a variable number of days in
a drop down list box.

What is the simplest way to clear the entries out of a drop down list box so
I can always refresh it from the start? I see the ListItemCollection class
has a Clear method (which sounds like what I want), but I dont see it in the
ddlb.

Thanks, Mark
Jun 22 '06 #1
2 998
This syntax should do the trick:

DropDownList1.Items.Clear()
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"MarkAurit" <Ma*******@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
Depending on the month selected elsewhere I show a variable number of days
in
a drop down list box.

What is the simplest way to clear the entries out of a drop down list box
so
I can always refresh it from the start? I see the ListItemCollection
class
has a Clear method (which sounds like what I want), but I dont see it in
the
ddlb.

Thanks, Mark

Jun 22 '06 #2
Thanks Steve!

"Steve C. Orr [MVP, MCSD]" wrote:
This syntax should do the trick:

DropDownList1.Items.Clear()
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"MarkAurit" <Ma*******@discussions.microsoft.com> wrote in message
news:76**********************************@microsof t.com...
Depending on the month selected elsewhere I show a variable number of days
in
a drop down list box.

What is the simplest way to clear the entries out of a drop down list box
so
I can always refresh it from the start? I see the ListItemCollection
class
has a Clear method (which sounds like what I want), but I dont see it in
the
ddlb.

Thanks, Mark


Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
0
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind...
4
by: Roubles | last post by:
Hi All, Quick question; what is the difference between initializing and clearing a structure like this: mystruct_t a = {0}; and initializing and clearing it like this:
1
by: raghavendra | last post by:
Hi, i am facing problem clearing screen in console application. As, in C++ we have clrscr(); Is? their any similar type of function is avaliable.. Raghavendra...
9
by: Werner Hempel | last post by:
Hello, I'm trying to do a simple three column layout, with two divs (#left and #right) floating left and right, and the #content-div with margins in between, and all three in a wrapper-div. The...
65
by: Steven Watanabe | last post by:
I know that the standard idioms for clearing a list are: (1) mylist = (2) del mylist I guess I'm not in the "slicing frame of mind", as someone put it, but can someone explain what the...
0
by: negmat | last post by:
Hello everyone, I have the following question: I am aware that the objects currently in the cache can be viewed by issuing the following command: SELECT * FROM master.dbo.Syscacheobjects ...
65
by: Leslie Kis-Adam | last post by:
Hi everyone! Does anyone know, if it is possible to clear the screen in ANSI C? If it is,then how? Any help would be appreciated. Laszlo Kis-Adam <dfighter_AT-NOSPAM_freemail.hu
4
by: =?Utf-8?B?U2FuZHBvaW50R3V5?= | last post by:
I have a dropdown of states that is populated from a table, that looks like ddlb.DataValueField="StateCode" // ex: FL ddlb.DataTextField="StateDescription" // ex: Florida If I want to set the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.