Simple |
At it's most basic you can generate a grid by simply supplying the data source type, connection alias and the name of the table or view to the GridModel constructor. Default functionality includes a search box that will perform a wildcard search against all string based columns in the dataset, the ability to sort on any column by clicking on the heading, a copy page button and an option to export the data in HTML, Excel, CSV and JSON formats. |
Loading...
Razor code
GridModel customerGrid = new GridModel(DataSourceType.SQLite, "northwind", "Customers");
@(await new DbNetSuiteCore.GridControl(HttpContext).Render(customerGrid))