Table of Contents

Class GridColumnDef

Namespace
Tripous.Desktop
Assembly
Tripous.Desktop.dll

Used with group grids, i.e. grids with groups, summaries, etc.

public class GridColumnDef : BaseDef, IDef, IJsonLoadable, INotifyPropertyChanged
Inheritance
GridColumnDef
Implements
Inherited Members
Extension Methods

Constructors

GridColumnDef()

Initializes a new instance of the GridColumnDef class.

public GridColumnDef()

Properties

Aggregate

Gets or sets the aggregate type.

public AggregateType Aggregate { get; set; }

Property Value

AggregateType

Alignment

Gets or sets the horizontal alignment.

public HorizontalAlignment Alignment { get; set; }

Property Value

HorizontalAlignment

DataType

Gets or sets the data type.

[JsonIgnore]
public Type DataType { get; set; }

Property Value

Type

DisplayFormat

Gets or sets the display format.

public string DisplayFormat { get; set; }

Property Value

string

EditFormat

Gets or sets the edit format.

public string EditFormat { get; set; }

Property Value

string

FieldName

Gets the field name.

public string FieldName { get; }

Property Value

string

GroupIndex

Gets or sets the group index.

public int GroupIndex { get; set; }

Property Value

int

HasLookup

Gets a value indicating whether this column has a lookup source.

[JsonIgnore]
public bool HasLookup { get; }

Property Value

bool

IsBool

Gets a value indicating whether the column data type is boolean.

[JsonIgnore]
public bool IsBool { get; }

Property Value

bool

IsDateTime

Gets a value indicating whether the column data type is date/time.

[JsonIgnore]
public bool IsDateTime { get; }

Property Value

bool

IsNullable

Gets a value indicating whether the column accepts null values.

[JsonIgnore]
public bool IsNullable { get; }

Property Value

bool

IsNumeric

Gets a value indicating whether the column data type is numeric.

[JsonIgnore]
public bool IsNumeric { get; }

Property Value

bool

IsReadOnly

Gets or sets a value indicating whether the column is read-only.

public bool IsReadOnly { get; set; }

Property Value

bool

IsString

Gets a value indicating whether the column data type is string.

[JsonIgnore]
public bool IsString { get; }

Property Value

bool

LookupSource

Gets or sets the lookup source name.

public string LookupSource { get; set; }

Property Value

string

SortDirection

Gets or sets the sort direction.

public ListSortDirection SortDirection { get; set; }

Property Value

ListSortDirection

SortIndex

Gets or sets the sort index.

public int SortIndex { get; set; }

Property Value

int

SourceAllowsNull

Gets or sets a value indicating whether the source column allows null values.

public bool SourceAllowsNull { get; set; }

Property Value

bool

UnderlyingType

Gets the underlying data type.

[JsonIgnore]
public Type UnderlyingType { get; }

Property Value

Type

VisibleIndex

Gets or sets the visible index.

public int VisibleIndex { get; set; }

Property Value

int

Methods

From(DataColumn, FieldDef)

Creates a grid column definition from a data column and optional field definition.

public static GridColumnDef From(DataColumn Column, FieldDef Field = null)

Parameters

Column DataColumn

The data column.

Field FieldDef

The field definition.

Returns

GridColumnDef

The created grid column definition.