Monsalma Data Grid for .NET MAUI – Columns

Published:

Modified:

Column Types

DataGridColumn

DataGridColumn is the base column class. All other column classes inherit it. It is abstract – it cannot be instantiated.

Properties:

DataGridColumnText

DataGridColumnText contains a Label.

Label style is controlled by properties inherited from DataGridColumn: CellHeaderStyle, CellStyle and CellEditStyle. Background and foreground colors are inherited from corresponding DataGrid style properties (HeaderRowStyle, RegularOddRowStyle, RegularEvenRowStyle and SelectedRowStyle).

DataBinding property is used to generate label content.

HeaderText defines the content of the corresponding header cell.

DataGridColumnTemplated

DataGridColumnTemplated defines a column with templated content. Two templates can be set: the regular (read-only) template and edit template. The corresponding bindable properties are CellTemplate and CellEditTemplate.