Re: Sorting with datasource ArrayList

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The Sort method of the Gridview control raises the Sorting and Sorted
Events...that's why you're getting a stack overflow. Instead, you
should sort your data source (_alCustomerList) according to the
SortDirection and SortExpression provided by the EventArgs prior to
Databinding it to the Gridview in the Sorting Event.

.



Relevant Pages

  • GridView paging/sorting - will it work with stored procedures?
    ... Can anyone tell me whether the new ASP.NET 2.0 GridView control ... supports sorting and paging when the data source is a SQL stored ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • GridView paging/sorting - will it work with stored procedures?
    ... Can anyone tell me whether the new ASP.NET 2.0 GridView control ... supports sorting and paging when the data source is a SQL stored ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Is it possible to define two separate "Sort" methods in the same class?
    ... (for sorting mBuyLimits), and the other one is for sorting by "Price" ... in ascending order (for sorting mSellLimits)? ... I want to use IComparable and define the built-in Sort method. ...
    (microsoft.public.dotnet.general)
  • Re: When random isnt random
    ... > (and, if there is not one already, a Sorting Unit). ... TList has a Sort method. ... I solved this by writing a random class which holds its own RandSeed. ... But if you ever need more random generators (maybe because ...
    (borland.public.delphi.language.objectpascal)
  • GridView - Manual sorting
    ... When I use manual databinding to a GridView control, ... 'gvUsers - The GridView ... Wehen I set the AllowSorting property to True and handle the sorting ... sorting direction. ...
    (microsoft.public.dotnet.framework.aspnet)