Class GridColumnDef
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
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
DisplayFormat
Gets or sets the display format.
public string DisplayFormat { get; set; }
Property Value
EditFormat
Gets or sets the edit format.
public string EditFormat { get; set; }
Property Value
FieldName
Gets the field name.
public string FieldName { get; }
Property Value
GroupIndex
Gets or sets the group index.
public int GroupIndex { get; set; }
Property Value
HasLookup
Gets a value indicating whether this column has a lookup source.
[JsonIgnore]
public bool HasLookup { get; }
Property Value
IsBool
Gets a value indicating whether the column data type is boolean.
[JsonIgnore]
public bool IsBool { get; }
Property Value
IsDateTime
Gets a value indicating whether the column data type is date/time.
[JsonIgnore]
public bool IsDateTime { get; }
Property Value
IsNullable
Gets a value indicating whether the column accepts null values.
[JsonIgnore]
public bool IsNullable { get; }
Property Value
IsNumeric
Gets a value indicating whether the column data type is numeric.
[JsonIgnore]
public bool IsNumeric { get; }
Property Value
IsReadOnly
Gets or sets a value indicating whether the column is read-only.
public bool IsReadOnly { get; set; }
Property Value
IsString
Gets a value indicating whether the column data type is string.
[JsonIgnore]
public bool IsString { get; }
Property Value
LookupSource
Gets or sets the lookup source name.
public string LookupSource { get; set; }
Property Value
SortDirection
Gets or sets the sort direction.
public ListSortDirection SortDirection { get; set; }
Property Value
SortIndex
Gets or sets the sort index.
public int SortIndex { get; set; }
Property Value
SourceAllowsNull
Gets or sets a value indicating whether the source column allows null values.
public bool SourceAllowsNull { get; set; }
Property Value
UnderlyingType
Gets the underlying data type.
[JsonIgnore]
public Type UnderlyingType { get; }
Property Value
VisibleIndex
Gets or sets the visible index.
public int VisibleIndex { get; set; }
Property Value
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
ColumnDataColumnThe data column.
FieldFieldDefThe field definition.
Returns
- GridColumnDef
The created grid column definition.