sorting problem

Hi,

The problem is that i want to display "productdescriptions" in a sorted combobox and have their corresponding "prices" displayed in a label. Only problem is that in a sorted combobox the prices that are displayed dont correspond annymore to the selected productdescription.

So how can i fix this problem?
I was thinking of sorting the "productdescriptions" column in the dataset (or datagrid?). But how????

Thanks for any help.

Comments

  • : Hi,
    :
    : The problem is that i want to display "productdescriptions" in a sorted combobox and have their corresponding "prices" displayed in a label. Only problem is that in a sorted combobox the prices that are displayed dont correspond annymore to the selected productdescription.
    :
    : So how can i fix this problem?
    : I was thinking of sorting the "productdescriptions" column in the dataset (or datagrid?). But how????
    :
    : Thanks for any help.
    :
    :

    for sorting the data in the db you can do it a couple of ways - if you are executing a sql query to get your data simply put " ORDER BY fieldnamehere" at the end of the query - otherwise you can create a index on your db that would order your data by your specs.
    [blue]
    C:Dos
    C:Dos Run
    Run Dos Run
    [/blue]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion