Error attempting to sort a SalesLogix web grid control

If you have ever added code similar to:

mygrid.Sort("CreateDate", SortDirection.Descending);

You may have seen an error similar to this:

System.Web.HttpException: The GridView ‘mygrid’ fired event Sorting which wasn’t handled.

This is caused by attempting to call the sort method on a grid that does not have it’s EnableSorting property set to True.  Also, the column you are sorting should also have it’s IsSortable and SortField properties defined.


Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!