Dataset

  • Thread starter Thread starter Fredje
  • Start date Start date
F

Fredje

Hello,

In my application I'm using a typed dataset.
Now I want to display 3 row from that dataset as one listItem in a listbox.
There are 2 rows form the same table and one linked by a id form the parent
table.

I also want to be able to sort on one of the 3 rows at runtime.

How can I do this?

Thanks in advance
 
Fredje,

If you are going to do some sort of display like this, then you will
have to construct the item (text) for the listbox yourself. The reason for
this is that data binding is going to give you one item in the list box per
row in the table (which makes the most sense, of course).

Hope this helps.
 
Hi Fredje,

Please clarify more your question, I think that you mean that you want to
display 3 columns as one ListItem, if this is the case then you have to do
as paldino says , you cannot use databinding and you will have to do the
concatenation using a cicle. this is also true if you are planning to lookup
the linked value on the other table and display another field instead.

If you want to sort it then the best way is to create a DataView sorted as
you need it and then populate the listbox.


Hope this help,
 
Thank you both for your reaction

You understood me right.
Could you tell me how I can lookup that linked field?

Thx
 
Back
Top