GridView.AddUnboundColumn(String, String, Type) Method
Creates an unbound column with the specified name, caption, and unbound data type. Opens the Expression Editor to allow a \user to specify an expression for the column.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public GridColumn AddUnboundColumn(
string columnName,
string caption,
Type dataType
)
#Parameters
Name | Type | Description |
---|---|---|
column |
String | A string that specifies the column’s name. This value is assigned to the Grid |
caption | String | The column’s caption. This value is assigned to the Grid |
data |
Type | The type of data to store in the unbound column. This value is assigned to the Unbound |
#Returns
Type | Description |
---|---|
Grid |
The created unbound column. null if the user has not specified an expression for the column. |