Subject Re: [IBO] Control Grid
Author Helen Borrie
At 01:36 PM 30/07/2006, you wrote:
>This looks like an interesting control, but I'm having some trouble using
>it.
>
>
>I have been using the Tdataset compatible components mostly up to this
>point...so I'm not sure what event I can use at the dataset level to format
>the data there.

Which control grid? You can use the TDBCtrlGrid with the
Tdataset-compatible data access components (and the VCL help has
examples) or you can use the TIB_CtrlGrid with the IBO native (TIB_*)
data access components (or, more specifically, via TDatasource and
TIB_Datasource, respectively.) There's no crossover, e.g. mixing
TDataset-comp datasets with TIB_* controls or vice versa.
.
>I want to format my data before being displayed. I have used the
>GetDisplayText method of my edit boxes and it works fine for the active
>record, but for non-active records it displays unformated data.

AFAIK, control grids are intended for displaying one record at a time
from your set, since all the visual setting stuff in these controls
happens at row level. Scrolling is intended to be via a navigator
control rather than a vertical scrollbar.

That said, if you're using the native IBO d/a and control, you have a
lot of control over the appearance of your data (both current and
non-current records) in the controls via field and ColumnAttributes settings.

Helen