Previous Topic

Next Topic

Inhoudsopgave

Book Index

IsahGridMain.ColumnByFieldName Function

Function Function IsahGridMain.ColumnByFieldName(FieldName: String) : Grid column

Description

Gets a reference to a grid columnobject on the basis of a grid field name. Use this reference to change column properties like the width, color etc.

Parameters

Remarks

Use this function in the InitializeGridFields event handler.

Check for each referenced grid column if the object exists. Setting properties of a grid column which not exists results in errors during execution of the script.

Code Snippet

Set clmnCountryCode = frmEditForm.IsahGridMain.ColumnByFieldName("CountryCode")

If Not clmnCountryCode is nothing Then

clmnCountryCode.width = 400

End If