DynamicField::SortExpression Property
.NET Framework (current version)
Gets or sets the sort expression that is used when the data field is used to sort the data source by.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
public: property String^ SortExpression { virtual String^ get() override; virtual void set(String^ value) override; }
Property Value
Type: System::String^The sort expression that is used when the data field is used to sort the data source by.
| Exception | Condition |
|---|---|
| InvalidOperationException | The DynamicField object is inside a data-bound control that is not bound to a data source control that implements the IDynamicDataSource interface. |
The SortExpression property tries to use the value of the MetaColumn::SortExpression property of the column object that is associated with the DynamicField object by setting the DataField property.
The OnFieldChanged method is called to raise a state change event when the SortExpression property is set.
The value of the SortExpression property is stored in view state.
.NET Framework
Available since 3.5
Available since 3.5
Show: