SPGridView.FilterDataFields Property
Gets or sets the FilterDataFields property.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property FilterDataFields As String
Get
Set
'Usage
Dim instance As SPGridView
Dim value As String
value = instance.FilterDataFields
instance.FilterDataFields = value
public string FilterDataFields { get; set; }
Property Value
Type: System.String
Remarks
This is a comma separated list of data field names used for filtering.
Examples
For a grid view with four columns; specifying "foo,bar,qwerty,baz" will cause each column to be filterable with the four column filter values read from the foo, bar, qwerty, and baz data fields respectively.
oGrid.FilterDataFields = "foo,bar,qwerty,baz";
For the same four-column grid view; specifying "foo,,qwerty" will make the second and fourth columns un-filterable while the first and third columns are filtered using the data fields foo and qwerty respectively.