>In Portuguese we have some accented words (like José). When I'm indexing my view, I use a function that changes all accented character with the unaccented one, so TiraAcento("José") returns "Jose". So my index is TiraAcento(Upper(nm_employee)), for example. What should I do to have my grid columns sortable ?
>
Check out the section in the Developer's Guide "Changing the Order of Records in a Grid".
If you have created a persistent index on the view in ADataEnv.prg
In the Header's Click() event call the SetOrder routine with the name of the index:
This.Parent.Parent.SetOrder(
)
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com