| |||||||||||||||||||||||||||||
DataView.RowFilter PropertySystem.Data Namespace DataView Class Sets or retrieves the expression used to filter which rows are viewed in the DataView. Syntax
Property Value
The property is read/write with no default value. RemarksTo form a RowFilter value, specify the name of a column followed by an operator and a value to filter on. The value must be set in quotes. For example: myView.RowFilter = "LastName = 'Smith'" See the DataColumn class's Expression property for more information. ExampleThe following examples demonstrate using the RowFilter property to programmatically "filter" the records in a DataView at run time, based on user input.
The first example shows how to dynamically retrieve a set of records from a DataTable, given a RowFilter based on user input.
The second example is basically the same, except that the result sets are rendered into a DataGrid, with paging controls automatically enabled when the record count is more than the specified page size.
The last example shows how to use RowFilter to return a single record.
See AlsoDataView Members Expression Sort |
| ||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme