By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.