[Lazarus] Stringgrid woes...
Michael Van Canneyt
michael at freepascal.org
Sat Mar 14 11:20:03 CET 2009
On Fri, 13 Mar 2009, Jesus Reyes wrote:
> >
> > In Delphi, Setting
> >
> > EditorMode:=False;
> >
> > Saves the data (setedittext is called again). In Lazarus,
> > it is not called.
> >
>
> I'm taking notes.
Great :-)
>
> > I think it would also be a good idea to have an event which
> > helps to validate the data.
> >
> > Something like
> >
> > Procedure TForm1.ValidateEntry(Sender : TObject; ACol,ARow
> > : Integer; Var Value : String);
> >
> > begin
> > // Do some things, possibly modify Value or raise
> > exception.
> > end;
> >
> > Which is called only once, when the data is saved finally.
> > Currently, it's hard to do proper validation in a grid.
> > Well, in my opinion of course...
>
> I thought the same and that's why I introduced grid.modified which has served me very well.
> But I agree that an event to do validation would be best, I will try to do something about it.
I'll be glad to test, if you want.
Michael.
More information about the Lazarus
mailing list