Skip to main content

DataGridColumn Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls

Column descriptor for DataGrid.

public class DataGridColumn

Constructors

DataGridColumn(string label, int width)

public DataGridColumn(string label, int width)

Creates a new column with the given label and pixel width.

Properties

Label

public string Label { get; set; }

Display label for the column header.

Width

public int Width { get; set; }

Column width in pixels.

Order

public DataGrid.Order Order { get; set; }

Default sort order applied when the column header is tapped.

Methods

ToggleOrder()

public void ToggleOrder()

Toggles between ASC and DESC.