Skip to end of metadata
Go to start of metadata

The Column object contains properties to customize basic column information such as ColumnType, HeaderText and Width. This class should be used only when LayoutSet is set to MultipleColumns.

Definition

public class WebComboColumn : NamedObjectBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

WebComboColumn Constructor() Initializes a new instance of the WebComboColumn class with no argument.
WebComboColumn Constructor(string) Initializes a new instance of the WebComboColumn class with FieldName.

Protected Constructors

Public Properties

BaseFieldName Returns or sets the base field name of the column. You should never set this property manually as it's populated automatically on
Bound Specifies whether the column is bound to the DataColumn of DataSource.
CellImage Gets or sets the image filename that will be displayed in cells that belong to this column.
ColumnType Gets or sets the type of the column that control how the column content will be rendered.
Combo Returns the WebCombo object that own this column.
DataFormatString Gets or sets the string format to use when rendering values.
DataType Gets or sets the data type of the column.
HeaderText Returns or sets the header text for the column.
Hidden Specifies whether the column should be displayed or hidden.
Name
Position The ordinal position of the column.
RenderOnHidden Gets or sets a value indicating whether WebCombo should render this Column and its cell to client (in invisible display) when its Hidden property is set to True.
Width Specifies the width of column

Public Methods


Public Constructors

public WebComboColumn()

Initializes a new instance of the WebComboColumn class with no argument.

public WebComboColumn(string FieldName)

Initializes a new instance of the WebComboColumn class with FieldName.

Parameters

FieldName

Protected Constructors

protected WebComboColumn(SerializationInfo info, StreamingContext context)

Parameters

info
context

Public Properties

public string BaseFieldName { get; set; }

Returns or sets the base field name of the column. You should never set this property manually as it's populated automatically on

public bool Bound { get; set; }

Specifies whether the column is bound to the DataColumn of DataSource.

public string CellImage { get; set; }

Gets or sets the image filename that will be displayed in cells that belong to this column.

Remarks

This property will only take affect on column which ColumnType is Image or ImageAndText

public ColumnType ColumnType { get; set; }

Gets or sets the type of the column that control how the column content will be rendered.

Remarks

WebCombo provides predefined column type such as Text, Image, ImageAndText and Custom, which are most commonly used. For greater level of customization, WebCombo's Column contents can also be customized to display rich HTML-based contents by setting its ColumnType to Custom and write the custom content codes in InitializeRow event.

public WebCombo Combo { get; }

Returns the WebCombo object that own this column.

public string DataFormatString { get; set; }

Gets or sets the string format to use when rendering values.

public string DataType { get; set; }

Gets or sets the data type of the column.

Remarks

By default, WebCombo will automatically determines the data type of columns which is bound to DataSource and previous settings of DataType specified in design time is overriden.

public string HeaderText { get; set; }

Returns or sets the header text for the column.

public bool Hidden { get; set; }

Specifies whether the column should be displayed or hidden.

public string Name { get; set; }

public int Position { get; set; }

The ordinal position of the column.

public bool RenderOnHidden { get; set; }

Gets or sets a value indicating whether WebCombo should render this Column and its cell to client (in invisible display) when its Hidden property is set to True.

public Unit Width { get; set; }

Specifies the width of column

Remarks

The value of this property Empty by default. WebCombo control will use LayoutSet property as the default column width for the second and the rest columns. When working in MultipleColumns mode, WebCombo always set the 1st column's width to width of the WebCombo control. This is based on the standard behavior of Windows GUI. You may manually assign column's width from anywhere in the code.

Public Methods

public void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info
context
  • No labels