Subject Re: Modifying Grid Edits
Author sdbeames
--- In IBObjects@yahoogroups.com, "sdbeames" <s.beames@g...> wrote:
> Is it possible to catch & *massage* the data that is actually
stored
> by a TIB_Query after the user has edited it in a TIB_Grid? I want
to
> store data from particular cells as Seconds, but display it as
Hours.
>
> Thank you,
> Steve

Answering myself....

void __fastcall TAdminForm::UsersGridSetColumnText(TObject *Sender,
AnsiString &AString)
{
if (UsersGrid->FocusedCell.X > 7 && UsersGrid->FocusedCell.Y
> 0)
{
AString = IntToStr((int)(StrToFloat(AString) * 3600));
}
}