Intersoft WebGrid Documentation
OnCustomSort Method
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGrid Class : OnCustomSort Method






table
A reference to the WebGridTable object.
dataSource
A reference to the dataSource object.
sorts
A reference to the WebGridGroupCollection which contains SortedColumns that need to be sort during databinding process.
Invoked when AutomaticSort is False and sorting is needed during databinding process.

Syntax

Visual Basic (Declaration) 
Public Overridable Function OnCustomSort( _
   ByVal table As WebGridTable, _
   ByVal dataSource As Object, _
   ByVal sorts As WebGridGroupCollection _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim table As WebGridTable
Dim dataSource As Object
Dim sorts As WebGridGroupCollection
Dim value As Boolean
 
value = instance.OnCustomSort(table, dataSource, sorts)
C# 
public virtual bool OnCustomSort( 
   WebGridTable table,
   object dataSource,
   WebGridGroupCollection sorts
)
Delphi 
public function OnCustomSort( 
    table: WebGridTable;
    dataSource: TObject;
    sorts: WebGridGroupCollection
): Boolean; virtual; 
JScript 
public function OnCustomSort( 
   table : WebGridTable,
   dataSource : Object,
   sorts : WebGridGroupCollection
) : boolean;
Managed Extensions for C++ 
public: virtual bool OnCustomSort( 
   WebGridTable* table,
   Object* dataSource,
   WebGridGroupCollection* sorts
) 
C++/CLI 
public:
virtual bool OnCustomSort( 
   WebGridTable^ table,
   Object^ dataSource,
   WebGridGroupCollection^ sorts
) 

Parameters

table
A reference to the WebGridTable object.
dataSource
A reference to the dataSource object.
sorts
A reference to the WebGridGroupCollection which contains SortedColumns that need to be sort during databinding process.

Return Value

Returns ReturnValue. Event will be cancelled when ReturnValue is False.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

WebGrid Class
WebGrid Members

Tasks

Walkthrough: Applying custom sorting in WebGrid

Concepts

Advanced User Interactions

©2012 Intersoft Solutions Corp. All Rights Reserved.