Grids
Example of Search in ASP.NET Core Data Grid Control
This sample demonstrates the Grid searching feature. In this sample, use the search box from toolbar to search Grid records.
Category Name | Product Name | Quantity Per Unit | Units in Stock | Discontinued |
---|---|---|---|---|
Beverages | Chai | 10 boxes x 20 bags | 39 | |
Beverages | Chang | 24 - 12 oz bottles | 17 | |
Beverages | Chartreuse verte | 750 cc per bottle | 69 | |
Beverages | Cte de Blaye | 12 - 75 cl bottles | 17 | |
Beverages | Ipoh Coffee | 16 - 500 g tins | 17 | |
Beverages | Lakkalikri | 500 ml | 57 | |
Beverages | Laughing Lumberjack Lager | 24 - 12 oz bottles | 52 | |
Beverages | Outback Lager | 24 - 355 ml bottles | 15 | |
Beverages | Rhnbru Klosterbier | 24 - 0.5 l bottles | 125 | |
Beverages | Sasquatch Ale | 24 - 12 oz bottles | 111 | |
Beverages | Steeleye Stout | 24 - 12 oz bottles | 20 | |
Condiments | Aniseed Syrup | 12 - 550 ml bottles | 13 |
The Grid has an option to search its content using the search
method with search key as the parameter.
In this demo, The Grid toolbar provides an option to search the Grid's records. The user can type the text box in the
toolbar and click search button or press Enter key to perform search operation. We have used search
method to initiate search.