This documentation is archived and is not being maintained.
DataControlField::SortExpression Property
Visual Studio 2010
Gets or sets a sort expression that is used by a data source control to sort data.
Assembly: System.Web (in System.Web.dll)
[TypeConverterAttribute(L"System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] public: virtual property String^ SortExpression { String^ get (); void set (String^ value); }
Property Value
Type: System::StringA sort expression that is used by a data source control to sort data. The default value is an empty string ("").
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: