473,654 Members | 3,272 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I get my combox listing to display in sorted order by DataM

This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the dataset
table which is the datasrouce for the comboBox with valuemember wet to -1.
This is showing up at the bottom of the list. I want it to show at the top
of the listing. How can I do that?

Thanks, Alpha
Nov 17 '05 #1
3 1793
Hi ,
after binding your combobox ,
combobox.items. add("new item",0);

"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the dataset table which is the datasrouce for the comboBox with valuemember wet to -1.
This is showing up at the bottom of the list. I want it to show at the top of the listing. How can I do that?

Thanks, Alpha

Nov 17 '05 #2
What if I want all records to be diaplyed. What should I put in the strExpr?

Thanks, Alpha.

"Hasan O. Zavalsiz" wrote:
Hi ,
i forgot to tell how to sort .
Use datatable.selec t ( strExpr )
msdn example
strExpr = "id > 5";
// Sort descending by column named CompanyName.
strSort = "name DESC";
// Use the Select method to find all rows matching the filter.
DataRow[] foundRows =
customerTable.S elect( strExpr, strSort, DataViewRowStat e.Added );

"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the

dataset
table which is the datasrouce for the comboBox with valuemember wet to -1.
This is showing up at the bottom of the list. I want it to show at the

top
of the listing. How can I do that?

Thanks, Alpha


Nov 17 '05 #3
Hi
dont use it ;)

"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:22******** *************** ***********@mic rosoft.com...
What if I want all records to be diaplyed. What should I put in the strExpr?
Thanks, Alpha.

"Hasan O. Zavalsiz" wrote:
Hi ,
i forgot to tell how to sort .
Use datatable.selec t ( strExpr )
msdn example
strExpr = "id > 5";
// Sort descending by column named CompanyName.
strSort = "name DESC";
// Use the Select method to find all rows matching the filter.
DataRow[] foundRows =
customerTable.S elect( strExpr, strSort, DataViewRowStat e.Added );
"Alpha" <Al***@discussi ons.microsoft.c om> wrote in message
news:D1******** *************** ***********@mic rosoft.com...
This is a Window based application. How do I get my combox listing to
display in sorted order by DataMember? I inserted a blank row to the

dataset
table which is the datasrouce for the comboBox with valuemember wet to -1. This is showing up at the bottom of the list. I want it to show at
the top
of the listing. How can I do that?

Thanks, Alpha

Nov 17 '05 #4

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

Similar topics

3
1637
by: sam | last post by:
Hello group, The datagrid is sorted using a dataview. Can I get the sorted dataview or table from the datagrid or any other way. All I need to get is the sorted data. Here is my code and what I am trying to accomplish: The datagrid is sorted using: dgWIP.DataSource = dvWIP dvWIP.Sort = Me.SortColumn & " " & Me.SortOrder dgWIP.DataBind()
1
1661
by: jvb | last post by:
Hello, I have got the following problem. I have an access database with the name of different persons and there telephone numbers. In an access page you can display the field name and the telephone number. What i want to do is a combobox in wich you can select the name and the the right telephonenumber has to be shown! I CANT FIGURE IT OUT HOW TO DO THIS. IT LOOKS SIMPLE BUT ........
17
2064
by: perryche | last post by:
I have 5records, e.g. Rc1, Rc2, Rc3..., when user open up a form, I want it to open to a particular record (say Rc3) then when user chooses the Record Selector , it will go to Rc2 and , it will go to Rc4. If I use Sort in the query, it is sorted alphabetically; if I do not sort, whatever is the latest record will be on top. Any help/insight will be appreciated. Perry
9
1669
by: Ramashish Baranwal | last post by:
Hi, I want to get a module's contents (classes, functions and variables) in the order in which they are declared. Using dir(module) therefore doesn't work for me as it returns a list in alphabetical order. As an example- # mymodule.py class B: pass class A: pass
0
8294
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8709
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8494
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7309
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4297
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.