The APNSoft Menu will only work on JavaScript enabled browsers.
About Us
Products
Downloads
Purchase
Support
DataGrid
Version
3.1
The APNSoft Nav will only work on JavaScript enabled browsers.
What's New
Overview
Features
Reference Book
System Requirements
Deployment
Customization
Templates
Edit Form
Server-side API
Client-side API
Source Code
Example Applications
Licensing
License Agreement
License Types
License Key
Upgrade Policy
Support
Contacts
FAQs
Feature Request
The APNSoft Nav will only work on JavaScript enabled browsers.
Populating with Data
Data Binding
Dynamically populating
Large data source
Columns (general)
Width
Sorting
Header Text
Line Numbers
Data Formatting
CSS Formatting
Fixed columns
Columns (templates)
HTML Template
XSL Template
ASCX Template
CheckBoxes
DropDowns
Images
Rows
Row uniqueness
Alternating rows
Hovered row
CSS Formatting
Client-side selection
Server-side selection
Filtering
Insert/Update/Delete
Cell editing
Bottom Bar
Template
Custom Buttons
Client-side events
Enabled/Disabled
Layout and Behavior
Running Mode
Custom AJAX call
Page Size
Context Menu
Width and Height
Auto-resizing
Exporting
Export to Excel
Export to HTML
Skins
APNSoft
Windows XP
Windows Vista
Classic
Mac OS
Media Player
Grayscale
APNSoft
>
Products
>
DataGrid
>
Live Demos
>
Row Filter
Alphabetic Filter:
A
B
C
D
E
F
G
.....
All
CustomerID
CompanyName
ContactName
Address
PostalCode
The APNSoft DataGrid will only work on JavaScript enabled browsers.
APNSoft DataGrid includes the filter feature which allows users to quickly locate records they are looking for. Row filter can be applied from the server side or client side (JavaScript procedure, context menu, input box, etc.). This example demonstrates how you can filter records by using the bar for alphabetic filtering or via context menu.
In conjunction with filter feature, Grid displays special button/indicator in the bottom bar. This element (indicator) is useful to reflect the current filter state. It also can be used to switch ON/OFF applied row filter. For instance, when a row filter is applied, the filter indicator is marked as active. Likewise, when the filter is removed, the indicator is disabled (inactive).
Please use the following methods and properties to add/remove row filter.
The
RowFilter
is a server-side property which specifies the filter expression.
The
RemoveRowFilter()
is a server-side method which removes the filter.
The
dg.SetRowFilter(GridID,Filter)
is a client-side method which sets the filter.
The
dg.RemoveRowFilter(GridID)
is a client-side method which removes the filter.
The
dg.GetRowFilter(GridID)
is a client-side method which returns the filter.
The
dg.AddRowFilter(GridID,Filter)
is a client-side method which adds a filter expression to the current Grid's filter expression.
Row Filter is a string expression that specifies how rows are to be filtered. For complete info about filter expressions, refer to the MSDN Library (the DataColumn.Expression property).
Below are examples of the most popular filter expressions (C#):
dg1.RowFilter = "CustomerID = 'ANTON'";
dg1.RowFilter = "CustomerID Like 'A%'";
dg1.RowFilter = "Date = #12/31/2008#";
dg1.RowFilter = "Date < #1/1/2008#";
dg1.RowFilter = "City <> 'Tokyo' AND City <> 'Paris'";
dg1.RowFilter = "Age < 16 OR Age > 65 ";
To apply a filter which is switched off by default, use the "minus" sign at the first position:
dg1.RowFilter = "-CustomerID Like 'A%'";
Code Samples:
Default.aspx
Default.aspx.cs
Default.aspx.vb
ContextMenu.xml
BottomBar.xml
Skin Style
Skin Images
Nwind.mdb
© 2003-2010 APNSoft. All rights reserved.
Table of Contents
Terms of use
Contact Us
Help Center
Controls Suite
DataGrid
Menu
TreeView
ComboBox
Include
DataGrid
Menu
TreeView
ComboBox
Include
Filter: Equals '
$CellValueTextShort$
'
Remove Filter