Defines an interface to order or sort Rows.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public interface ICustomSort |
Visual Basic |
---|
Public Interface ICustomSort |
Visual C++ |
---|
public interface class ICustomSort |
F# |
---|
type ICustomSort = interface end |
Remarks
Copy | |
---|---|
class MyCystomSort : ICustomSort { public int Compare(Row row1, Row row2, string fieldId, object value1, object value2, int defaultResult) { string v1 = value1.ToString(); string v2 = value2.ToString(); if (v1 == "some value") return -1; if (v2 == "some value") return 1; return defaultResult; } } ... grid.CustomSort = new MyCystomSort(); |