WebGrid.SortFieldName Property

Gets the full name of the query-string field that is used to specify the name of the data column that the WebGrid instance is sorted by.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public ReadOnly Property SortFieldName As String 
    Get
'Usage
Dim instance As WebGrid 
Dim value As String 

value = instance.SortFieldName
public string SortFieldName { get; }
public:
property String^ SortFieldName {
    String^ get ();
}
member SortFieldName : string
function get SortFieldName () : String

Property Value

Type: System.String
The full name of the query-string field that is used to specify the name of the data column that the grid is sorted by.

Remarks

The full name of a query string field is formed by prepending the value of the FieldNamePrefix property to the value of the specified field name property. The value of the field name properties and the value of the FieldNamePrefix property are set when the WebGrid object is instantiated by using the WebGrid(IEnumerable<Object>, IEnumerable<String>, String, Int32, Boolean, Boolean, String, String, String, String, String, String, String) constructor and cannot be changed later.

See Also

Reference

WebGrid Class

System.Web.Helpers Namespace