D
Dan
I'm binding a combobox to a table of a typed dataset; in design mode, I set
the datasource to the dataset table and its displaymember and valuemember as
required. The binding works fine, and if I add or edit a record in the
underlying dataset table this is reflected by the combobox items list.
My question is: *how can I keep the items in the combo sorted* by its
display member after a new record has been added or an existing one has been
edited? Now, they are simply appended to the table end and consequently they
appear last in the combo. The original sorting came from the data adapter
which fille the dataset (its select command has an order by clause), but
when working disconnected (as this is the case when adding/editing combobox
records) this does not matter...
Thanks guys!
the datasource to the dataset table and its displaymember and valuemember as
required. The binding works fine, and if I add or edit a record in the
underlying dataset table this is reflected by the combobox items list.
My question is: *how can I keep the items in the combo sorted* by its
display member after a new record has been added or an existing one has been
edited? Now, they are simply appended to the table end and consequently they
appear last in the combo. The original sorting came from the data adapter
which fille the dataset (its select command has an order by clause), but
when working disconnected (as this is the case when adding/editing combobox
records) this does not matter...
Thanks guys!