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

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 1785
Hi ,
after binding your combobox ,
combobox.items.add("new item",0);

"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.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.select ( 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.Select( strExpr, strSort, DataViewRowState.Added );

"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.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***@discussions.microsoft.com> wrote in message
news:22**********************************@microsof t.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.select ( 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.Select( strExpr, strSort, DataViewRowState.Added );
"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.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
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...
1
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...
17
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...
9
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...
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: 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
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.