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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 );
 
What if I want all records to be diaplyed. What should I put in the strExpr?

Thanks, Alpha.

Hasan O. Zavalsiz said:
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 said:
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
 
Hi
dont use it ;)

Alpha said:
What if I want all records to be diaplyed. What should I put in the strExpr?

Thanks, Alpha.

Hasan O. Zavalsiz said:
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 said:
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
 
Back
Top