Subject | Re: Modifying Grid Edits |
---|---|
Author | sdbeames |
Post date | 2004-04-23T23:55:46Z |
--- In IBObjects@yahoogroups.com, "sdbeames" <s.beames@g...> wrote:
void __fastcall TAdminForm::UsersGridSetColumnText(TObject *Sender,
AnsiString &AString)
{
if (UsersGrid->FocusedCell.X > 7 && UsersGrid->FocusedCell.Y
AString = IntToStr((int)(StrToFloat(AString) * 3600));
}
}
> Is it possible to catch & *massage* the data that is actuallystored
> by a TIB_Query after the user has edited it in a TIB_Grid? I wantto
> store data from particular cells as Seconds, but display it asHours.
>Answering myself....
> Thank you,
> Steve
void __fastcall TAdminForm::UsersGridSetColumnText(TObject *Sender,
AnsiString &AString)
{
if (UsersGrid->FocusedCell.X > 7 && UsersGrid->FocusedCell.Y
> 0){
AString = IntToStr((int)(StrToFloat(AString) * 3600));
}
}