GridSortField
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridSortField : SortDescriptor, INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable
Inheritance: objectSortDescriptorGridSortField
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridSortField class.
public GridSortField()
Initializes a new instance of the GridSortField class with field name, sort order and the default data type of string.
public GridSortField(string fieldName, RadSortOrder sortOrder)
The field name of the new GridSortField object.
sortOrderRadSortOrderThe sort order of the new GridSortField object
Initializes a new instance of the GridSortField class with field name.
public GridSortField(string fieldName)
The field name of the new GridSortField object.
Properties
Gets or sets the name of the field.
public string FieldName { get; set; }
The name of the field.
Gets a value indicating whether this instance is empty.
[Browsable(false)]
public bool IsEmpty { get; }
true if this instance is empty; otherwise, false.
Gets or sets the sort order.
public RadSortOrder SortOrder { get; set; }
The sort order.
Methods
Clones this instance.
Determines whether the specified object is equal to this instance.
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Raises the PropertyChanged event
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
A PropertyChangedEventArgs instance containing event data.
Overrides:
Sorts the order as string.
Sorts the order as string.
public static string SortOrderAsString(RadSortOrder sortOrder)
The sort order.
Returns:Sorts the order from string.
public static RadSortOrder SortOrderFromString(string sortOrder)
The sort order.
Returns: