Skip to main content

Lists & Grids

Wisej.NET provides several controls for displaying collections of data. List controls present selectable items, while grid controls display multiple properties of each item in separate cells.

List Controls​

All list controls are derived from the ListControl class and are usually either a ComboBox or a ListBox, other similar controls are derived from one of the two. However, the ListControl base class provides all the infrastructure needed to build a custom data-bound list control.

All list controls are custom built widgets: they are all rendered as complex <div> containers since the native <select> element is too limited.

Grid Controls​

The most powerful grid control is the DataGridView. It integrates with server-side code and provides extensive properties, methods, and events for displaying and editing data.

Another extremely powerful control able to manage multiple properties in a bound data list is the DataRepeater. While it's not technically a grid, it functions as a custom grid where the developer can build a template used to display data in rows or columns.

A third type of grid control is the ListView, it can show data in two main layouts: grid and items. When it shows the data in grid view, it uses an internal DataGridView.