Class GridDataBoundGridFilterBarExt
Provides the functionalities of custom filter bar that filters the grid data by display member.
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridDataBoundGridFilterBarExt : GridFilterBar
Constructors
GridDataBoundGridFilterBarExt()
Initializes a new instance of the GridDataBoundGridFilterBarExt class.
Declaration
public GridDataBoundGridFilterBarExt()
Methods
CreateEntries(DataView, String, String)
Creates a dropdown with both display and value members.
Declaration
protected DataTable CreateEntries(DataView dv, string displayName, string valueName)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataView | dv | The Data View. |
System.String | displayName | The Display Member. |
System.String | valueName | The Value Member. |
Returns
Type | Description |
---|---|
System.Data.DataTable | Data Table. |
CreateUniqueEntries(DataView, String)
Creates a dropdown with both display and value members.Overriden from base filter bar.
Declaration
protected override DataTable CreateUniqueEntries(DataView dv, string colName)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataView | dv | The Data view. |
System.String | colName | A value member |
Returns
Type | Description |
---|---|
System.Data.DataTable | The data table. |
Overrides
GetFilterFromRow(GridDataBoundGrid)
Swaps display and value strings in the default filter.
Declaration
protected override string GetFilterFromRow(GridDataBoundGrid grid)
Parameters
Type | Name | Description |
---|---|---|
GridDataBoundGrid | grid | The GridDataBoundGrid. |
Returns
Type | Description |
---|---|
System.String | Filter string. |
Overrides
WireGrid(GridDataBoundGrid, GridStyleInfo)
Swaps out the filter drop down lists for any ComboBox column with DisplayMember != ValueMember and replace the default single item dropdown with a dropdown that handles both display and values.
Declaration
public override void WireGrid(GridDataBoundGrid grid, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridDataBoundGrid | grid | The GridDataBoundGrid to add the filter bar. |
GridStyleInfo | style | GridStyleInfo of the filter bar cell. |