I have a grid control that displays all the rows and columns of a table
diagcode.
I have a option group that allows user to select sort by column "diagcode"
or "diagdesc". How can I now get the data in the grid to sort based on what
is selected in the optiongroup?

Re: Data Sort Using Grid Control by Stefan

Stefan
Tue Oct 26 02:35:40 CDT 2004

You can create index tags and use Set Order To ... at runtime, e.g.
&& at designtime
Use diagcode Exclusive
Index On yourFieldExpr Tag tagName

&& at runtime
Select diagcode && assuming alias is open Shared already
Set Order To tagName && or...
Set Order To tagName Descending

See also "Using Rushmore Query Optimization to Speed Data
Access", Sys(3054) and related in help


hth
-Stefan

"baagh" <baagh@discussions.microsoft.com> schrieb im Newsbeitrag
news:0DD005C3-AE02-4436-ACF5-A215676F5E60@microsoft.com...
>I have a grid control that displays all the rows and columns of a table
> diagcode.
> I have a option group that allows user to select sort by column "diagcode"
> or "diagdesc". How can I now get the data in the grid to sort based on what
> is selected in the optiongroup?