[]
        
(Showing Draft Content)

C1.Win.C1TrueDBGrid.C1DataColumn

C1DataColumn Class

Represents a column that defines binding information for the datasource.

Inheritance
C1DataColumn
Namespace: C1.Win.C1TrueDBGrid
Assembly: C1.Win.C1TrueDBGrid.4.8.dll
Syntax
[TypeConverter(typeof(ExpandableObjectConverter))]
public class C1DataColumn

Constructors

Name Description
C1DataColumn()

Creates a new instance of this object.

C1DataColumn(string, string, Type)

Creates a new instance of this object.

C1DataColumn(string, Type)

Creates a new instance of this object.

Properties

Name Description
Aggregate

Gets or sets the type of aggregate computed for a grouped row.

AllowFiltering

Gets or sets a value indicating the filter type for the column.

ButtonPicture

Gets or sets the image shown in a drop-down button in a column.

ButtonPictureAlignment

Gets or sets the alignment of the image shown in a drop-down button in a column.

Default is C1.Framework.ImageAlignment.CenterTop.

ButtonPictureBackColor

Gets or sets the background color used for the image shown in a drop-down button in a column.

Default is Transparent.

ButtonPictureStretch

Gets or sets the stretch type of the image shown in a drop-down button in a column

Default is C1.Framework.Stretch.None.

ButtonStretch

Gets or sets the stretch type of the drop-down button in a column

Default is C1.Framework.Stretch.Fill.

Caption

Gets or sets the text in the column header.

DataChanged

Gets or sets a value indicating whether data in this column has been modified.

DataField

Gets or sets the database field name for a column.

DataType

Gets or sets the type of object stored for a column.

DataTypeInternal
DataWidth

Gets or sets the maximum number of characters which may be entered for cells in this column.

DefaultValue

Gets or sets the default value for a column when a new row is added by the grid.

DropDown

Gets or sets a user defined object associated with this column.

DropDownCtl
EditMask

Gets or sets the edit mask for a column.

EditMaskUpdate

Gets or sets a value indicating whether literal characters in the edit mask are stored to the underlying data source.

Editor

Gets or sets the editor that is used to edit cell data.

EnableDateTimeEditor

Gets or sets a value indicating whether a DateTime picker is used to edit this column.

Expression

Gets or sets the expression for column.

FilterApplyText

Gets or sets the text of Apply button in the filter drop-down list when the FilterMultiSelect property is True.

FilterButtonPicture

Gets or sets the image shown as the column's filter button.

FilterCancelText

Gets or sets the text of Cancel button in the filter drop-down list when the FilterMultiSelect property is True.

FilterCascade

Gets or sets a value indicating that a drop-down list in the filter cell contains list of all values or only visible values of the column.

FilterClearText

Gets or sets the text of Clear button in the filter drop-down list when the FilterMultiSelect property is True.

FilterCount

Gets the number of values in the filter drop-down list.

FilterDropdown

Gets or sets a value indicating whether a drop-down list is displayed in the filter cell that lists all the values of the field.

FilterDropdownText

Gets or sets the value indicating All when the FilterDropdown property is True.

FilterEscape

Gets or sets the characters that should be ignored when applying the filter criteria to the datasource.

FilterKeys

Gets or sets the key used to initiate the filtering operation as the user types in the filterbar.

FilterMultiSelect

Gets or sets a value indicating whether multiple values can be selected in the filter drop-down list.

FilterOperator

Gets or sets the operator that is used for a filter expression.

FilterSeparator

Gets or sets a character used to separate values in the filter drop-down list when multiple values are selected.

FilterSortType

Gets or sets a value indicating how the drop-down list should be sorted.

FilterText

Gets or sets the data associated with the value of the filter for a column.

FilterWatermark

Specifies the text that is rendered in an empty cell in the Filterbar.

FooterExpression

Gets or sets the expression for column footer.

FooterText

Gets or sets the text displayed in the column footer.

GroupInfo

Gets or sets the GroupInfo associated with this column.

ImeMode

Specifies the ImeMode used to edit this column.

Level

Gets or sets the level of this column in a hierarchical data source.

NumberFormat

Gets or sets the formatting string for a column.

Relation
RelationState
SortDirection

Gets or sets the state of the sorting glyph in the column caption bar.

Tag

Gets or sets a user defined objects associated with this column.

Text

Gets or sets the display value for the current cell.

Value

Gets or sets the value of the current cell.

ValueItems

Gets the ValueItems object for this column.

buttonPicIdx

Index of button picture.

buttonPicTag

Tag of button picture.

filterButtonPicIdx

Methods

Name Description
CellText(int)

Gets the display value for a cell in a given row.

CellValue(int)

Gets the cell value for a given row.

Refetch()

Repopulate the entire grid from the data source.

RefetchCell()

Repopulates the current cell from the data source.

RefetchCell(int)

Repopulates the specified data from the data source.

Refresh()

Invalidate the current column in all visible rows.

RefreshCell()

Invalidates the current cell.

RefreshCell(int)

Invalidates the cell at the given row.

ResetButtonPicture()

Resets ButtonPicture to its default value.

ResetButtonPictureBackColor()

Resets ButtonPictureBackColor to its default value.

ResetFilterButtonPicture()

Resets FilterButtonPicture to its default value.

ToString()