Subject RE: [IBO] IB_Grid / FieldVisible
Author Alan McDonald
ah - thought it was a query property - thanks
Alan

-----Original Message-----
From: Lucas Franzen [mailto:luc@...]
Sent: Tuesday, 25 February 2003 10:10 AM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] IB_Grid / FieldVisible




Alan McDonald schrieb:
>
> BDE - still got some BDE apps I support...
> DisableControls - apparently not..but it works fine now
>
> Where is GridLinks?

TIB_Grid ( TIB_CustomGrid ) --> GridLinks

Helpfile copy&paste:

Applies to
TIB_CustomGrid
Declaration
Property GridLinks : TIB_StringList;
Description
This property determines a custom list of fields that should be
displayed in the grid.

It orders the fields and thus overrides the TIB_Query.FieldsIndex
property.

It allows the following syntax:
[< tablename >.]< columnname >
This is the simplest specification. The field will be visible in the
grid if the dataset provides it. Properties are taken from the
TIB_Column.
[< tablename >.]< columnname >=WIDTH=< width_in_pixels >
When WIDTH is specified, only the current grid is affected. The
underlying TIB_Column will remain unaffected, hence other grids won't be
impacted.
[< tablename >.]< columnname >=ALIGN=< Left|Center|Right >
When ALIGN is specified, only the current grid is affected. The
underlying TIB_Column will remain unaffected, hence other grids won't be
impacted. Only the first letter is significative to specify the field
alignment.
Of course, you can mix the two specifications, for example:
myfield=WIDTH=45;ALIGN=C

Beware the functionality has changed. In previous version, a field named
in this property that didn't exist in the dataset would cause an
incorrect exchange of fields when done visually on the grid with the
mouse. Now, the grid takes into account the GridLinks entries not found
in the dataset for all operations. So, you can switch at run-time
between datasources and the grid will adjust to the fields that only
exists in the new TIB_Query.


___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/