GridColumnCollection.AddUnbound(String, Type) Method
In This Article
Creates an unbound column with the specified field name and unbound data type, and adds it to the collection.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public virtual GridColumn AddUnbound(
string fieldName,
Type dataType
)
#Parameters
Name | Type | Description |
---|---|---|
field |
String | A unique value that does not match any data source field name. This value is assigned to the Field |
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. |
See Also