Previous Topic

Next Topic

Inhoudsopgave

Book Index

DataBinding.FieldName Property

Property Property DataBinding.FieldName: String (R/W)

Description

Assigns a field (by name) to the grid column.

Code Snippet

'assign another field to an existing column

Dim cOriginalColumnName

Dim cNewColumnName

'get the name of the fifth column in idbgridPart

cOriginalColumnName = idbgridPart.Columns(5).DataBinding.FieldName

'assign the Description field to the fifth column in idfbgridPart

idbgridPart.Columns(5).DataBinding.FieldName = "Description"

cNewColumnName = idbgridPart.Columns(5).DataBinding.FieldName

Msgbox "Sixth column before action: " & cOriginalColumnName & vbcrlf &_

"Sixth column after action: " & cNewColumnName