Repost : Dataset not sorting

J

John

Hi all,

I did post this earlier but I do need a fairly urgent resolution to this
problem of mine.

My web app contains a datagrid with a dataset within. The dataset is the
result of two other datasets (merged) but when my program sorts the dataset
it does not appear sorted in the datagrid.

I would prefer to sort the dataset itself prior to passing it back to the
requestor (as opposed to setting the sort of the datagrid).

How do I achieve this?

Regards
John.
 
M

Marina

You cannot sort a dataset. You can use a DataView and define a sort. That
will presented a sorted view of the data when using the dataview - however,
the data in the dataset itself will not be altered.
 
J

John

Thanks for the reply.

Could you please point me a code example of how to achieve this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top