LookUpColumnInfo(String, Int32, String) Constructor
Creates an instance of the LookUpColumnInfo class and initializes its field name, caption and width.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public LookUpColumnInfo(
string fieldName,
int width,
string caption
)
Parameters
Name | Type | Description |
---|---|---|
fieldName | String | The value to initialize the LookUpColumnInfo.FieldName property. |
width | Int32 | The value to initialize the LookUpColumnInfo.Width property. |
caption | String | The value to initialize the LookUpColumnInfo.Caption property. |
Remarks
The constructor creates a column and initializes its field name, caption and width with the specified values.
Other properties are set as follows:
- LookUpColumnInfo.Alignment to HorzAlignment.Default
- LookUpColumnInfo.FormatType to FormatType.None
- LookUpColumnInfo.FormatString to an empty string
- LookUpColumnInfo.Visible to true
After a column has been created, you can add it to a lookup editor’s column collection by using the LookUpColumnInfoCollection.Add method, for instance. To access the column collection, see the RepositoryItemLookUpEdit.Columns property.