473,386 Members | 2,078 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,386 software developers and data experts.

ComboBox Sort

Whenever I change an item in my combobox, it doesn't resort the items. If I
add an item, then it sorts ok. Is this normal?
--
Dennis in Houston
Nov 21 '05 #1
3 5307
"Dennis" <De****@discussions.microsoft.com> schrieb:
Whenever I change an item in my combobox, it doesn't resort the items. If
I
add an item, then it sorts ok. Is this normal?


I am able to reproduce this behavior. Quick workaround:

\\\
With Me.ComboBox1
.Items(2) = "ZZZZ"
.Sorted = False
.Sorted = True
End With
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Thanks. I thought I'd tried that but apparently I only reset the sorted
property True and didn't set it to False first.

"Herfried K. Wagner [MVP]" wrote:
"Dennis" <De****@discussions.microsoft.com> schrieb:
Whenever I change an item in my combobox, it doesn't resort the items. If
I
add an item, then it sorts ok. Is this normal?


I am able to reproduce this behavior. Quick workaround:

\\\
With Me.ComboBox1
.Items(2) = "ZZZZ"
.Sorted = False
.Sorted = True
End With
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
"Dennis" <De****@discussions.microsoft.com> schrieb:
I thought I'd tried that but apparently I only reset the sorted
property True and didn't set it to False first.


That's what I tried too :-)...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4

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

Similar topics

4
by: piet | last post by:
Is it possible to add an option ALL in the ist of a combobox that get its values from a table? Example: in the combobox are the items from the table "days": monday, th.... The chosen value...
2
by: MrNobody | last post by:
If I DataSource a ComboBox to a DataTable, and specify a column for ValueMember and DisplayMember, everything comes out fine until I sort. When I sort, it seems to sort the DisplayMembers...
2
by: amber | last post by:
Hello I use the following code to populate a combobox Me.cbxPeerReview.DropDownStyle = ComboBoxStyle.DropDownLis With cbxPeerRevie .DataSource = dtEm .DisplayMember = "STR_NAME_F .ValueMember...
11
by: Doug Bell | last post by:
Hi, I have a problem with a ComboBox bound to a DataView. The ComboBox shows the correct number of rows but instead of the data, each row shows "System.Data.DataRowView" Can someone explain how...
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
7
by: Simon Verona | last post by:
I posted this in dotnet.languages.vb.controls but thought I'd post here as well.. I have a combobox that is bound to a dataview generated from a dataset. The dataset has a single table...
4
by: Peter | last post by:
C# .NET 1.1 How do I sort ComboBox in descending order? Thanks Peter
4
by: Matt | last post by:
I have been searching all over the web for a way to sort a DataGridView based on the actual text being shown in a ComboBox column as opposed to the underlying value (an ID in this case). Can anyone...
19
by: active | last post by:
I'm using a ComboBox to display objects of a class I've defined, say CQQ. Works great except somehow I occasionally set an Item to a String object instead of an object of type CQQ. It looks...
1
by: JAnn81 | last post by:
I have a combo box created using xaml. I bind the item source to a xml document. <Items> <Item> <Name>David</Name> <Age>20</Age> </Item> <Item> <Name>Marcus</Name> <Age>25</Age>
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.