Previous Topic

Next Topic

Inhoudsopgave

Book Index

Columns Property

Property Property Columns(n: Integer): TIsahDBGridColumn (R)

Description

Describes the display attributes and field bindings of the columns. Use Columns to read or set the field bindings and display attributes of the columns in the data-aware grid. The Columns property is a TIsahDBGridColumn object. Use the properties of the TIsahDBGridColumn object to specify the display attributes or field bindings of individual columns in the grid. The field binding of a column designates a field within the dataset specified by the DataSource property. Columns can be set at design time through the Columns editor, or programmatically at runtime.

Code Snippet

rem Delete the last column in the grid

Dim i

i = idbgridPart.ColumnCount - 1

Msgbox "This action deletes the last column of the grid (" &_

idbgridPart.Columns(i).Name & ")"

idbgridPart.DeleteColumn(idbgridPart.Columns(i).Name)