WP TutorialLesson 12Free preview
WebPages WebGrid
This lesson is part of ASP · All levels
Summary
WebGrid is a built-in helper for displaying tabular data from a database quickly without writing a manual HTML table. Just enter a collection of query result rows, and then WebGrid will create columns, sort links, and pagination automatically. This component is very practical for an admin page or a simple data list.
Key points
- WebGrid was created with new WebGrid(koleksiBaris).
- Use the rowsPerPage parameter to limit the number of rows per page.
- Columns can be selected or named through the parameters of columns.
- WebGrid generates sort links and navigates pages automatically.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.