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

combobox add "--select" after populated by datasource

Wu
Hello,
I can not add a new items to combobox after the datasource was loaded.

I usually do item.add(0,"--select") for dropdownlist at asp.net but it does
not allow in window application in combobox.

Please advice.

Wu
Sep 25 '08 #1
1 2698
I have done pretty much all of my development in ASP.NET, but what happens
if you add to the datasource (I'm assuming a DataTable object?) before
loading it? Also, what happens if you individually add your "--select" item
to the combobox before loading the datasource? These are the best
suggestions I can come up with for you, since I have not really done any
development other than ASP.NET.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"Wu" <wu*******@gmail.comwrote in message
news:uB**************@TK2MSFTNGP04.phx.gbl...
Hello,
I can not add a new items to combobox after the datasource was loaded.

I usually do item.add(0,"--select") for dropdownlist at asp.net but it
does
not allow in window application in combobox.

Please advice.

Wu

Sep 30 '08 #2

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

Similar topics

3
by: Paul Fairless | last post by:
Customers table - contains Columns: CustID, Surname, Forename, TtlID Titles table - contains Columns: TtlID, Title TtlID is a Foreign Key in the Customers table. I have a Form frmCustomers...
0
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
1
by: TheMadHatter | last post by:
I have an array of a custom obj which I am trying to use in multiple comboBoxes without creating multiple copies, but if I put the datasource of the comboboxes to the same array, then at runtime...
0
by: RvGrah | last post by:
I'm trying to speed up my coding by not doing so much manually, use the automated tools more. I'm binding the Datasource, DisplayMember, and ValueMember to a Combo. The automation also puts a...
1
by: Bill Nguyen | last post by:
Is there a way to add a new item to a combobox after Datasource property is set to a recordset? Thanks Bill
1
by: kamal | last post by:
when i add the datasource of combobox by default the first value is selected .. but when i use the Items.Add() then nothing is selected. how do i remove the default selection in combobox when...
9
by: Franky | last post by:
I have a usercontrol that inherits from ComboBox I'd like to add the feature that the user can delete any item Best would be that he could right click an element and a messagebox would ask if...
2
by: samueltilden | last post by:
This problem should be simple. I am using Visual Studio 2003, Version 1.1 I am writing a desktop application in which I am binding a DataTable to the DataSource of a ComboBox. // I have...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.