Subject | Re: [IBO] Grid cols does not alter FieldsIndex |
---|---|
Author | marcus.monaghan@boot-computers.co.uk |
Post date | 2003-05-22T16:37Z |
once again, thank you very much.
>The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, we apologise for the inconvenience and request that you advise the sender by using the reply facility in your e-mail software then delete the message and any attachments from your mail and 'deleted messages'. All messages sent and received by BOOT Computers Limited are monitored for virus, high risk file extensions, and inappropriate content and can not therefore be considered secure for confidential information.
> Maybe this is what you're looking for (from the IBObjects help):
> <quote>
> Get the column of the grid from the column index of the dataset.
> Applies toTIB_CustomGrid
> Declaration: property GridCol[Index:integer]: integer;
> </quote>
>
> Have a look at the TIB_CustomGrid property GridFields, too.
> E.g. IB_Grid1.GridFields[0].FieldName should return the name of the field
> displayed in the first grid column.
> This is especially useful in a grid's OnDrawCell event where you need to
> know which field you have to draw.
>
> HTH,
> Markus