Does the dataview.sort property work with any column in the table or just
the primary key columns?

When I try to set the sort property to a column that is not a primary key,
it is ignored. Do I need to create an index or something first on the
columns I want to sort (I am setting the sort property in order to use the
dataview.find method)?

Using VB.NET 2002

Thanks in advance.

Re: Does Sort Property Work with non-Primary Keys? by William

William
Wed Oct 29 08:29:58 CST 2003

You can sort on multiple criteria in a DataView so I don't think that's your
problem. Here's a link that you may find helpful, but if you posted your
code snippet, it'd be easier to discern.
http://www.akadia.com/services/dotnet_filter_sort.html#Filtering%20and%20Sorting%20with%20the%20DataTable%20Select%20Method

HTH,

Bill




"Daryll Shatz" <dshatz@hotmail.com> wrote in message
news:Ogwh79bnDHA.2364@TK2MSFTNGP11.phx.gbl...
> Does the dataview.sort property work with any column in the table or just
> the primary key columns?
>
> When I try to set the sort property to a column that is not a primary key,
> it is ignored. Do I need to create an index or something first on the
> columns I want to sort (I am setting the sort property in order to use the
> dataview.find method)?
>
> Using VB.NET 2002
>
> Thanks in advance.
>
>