Thomas,
>I try to sort a gridview like the example in MM 2.3.
>Unfortunately e.SortDirection is always Ascending. But I want that the sorting toggles between Ascending and Descending.
Are you binding to a DataView? This is the way to get sorting functionality in ADO.NET. Check out the MM .NET Dev Guide topic "Working with DataViews" for details.
Best 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