Any ideas will be much appreciated!
Lito Hernanz
Portland, Oregon
You should perform validations the OnValidate event of the underlying
datase's TField objects or in the dataset's BeforePost event. Putting
"business logic" code like validations in UI controls is always
considered bad practice.
Another way :
Look at TField.FocusControl...
I think it's what you're looking for....
Best regards...
Seb
PS :
Sorry for direct email... (twice)
"Lito Hernanz" <litoh...@earthlink.net> a écrit dans le message de news:
3d1ac251_2@dnews...
procedure TForm1.MyDataSetMyFieldNameValidate(Sender: TField);
begin
DBGrid1.SelectedField := Sender;
end;
--
Andrei Fomine.
DbAltGrid - multi-line layout, RTF and graphics of any kind in DBGrid.
Transfer@once - full-blown clipboard and drag-and-drop transfer in native
MS Office formats to/from any control.
www.quasidata.com
"Lito Hernanz" <litoh...@earthlink.net> wrote in message
news:3d1ac251_2@dnews...
Lito
"Quasidata" <quasidataATquasidataDOTcom> wrote in message
news:3d1b3753$1_2@dnews...
Thank you very much for coming to my rescue!!
Lito Hernanz
"Quasidata" <quasidataATquasidataDOTcom> wrote in message
news:3d1b3753$1_2@dnews...
You should perform validations the OnValidate event of the underlying
Another way :
Look at TField.FocusControl...
I think it's what you're looking for....
Best regards...
Seb
PS :
Sorry for direct email... (twice)
"Lito Hernanz" <litoh...@earthlink.net> a écrit dans le message de news:
3d1ac251_2@dnews...
procedure TForm1.MyDataSetMyFieldNameValidate(Sender: TField);
begin
DBGrid1.SelectedField := Sender;
end;
--
Andrei Fomine.
DbAltGrid - multi-line layout, RTF and graphics of any kind in DBGrid.
Transfer@once - full-blown clipboard and drag-and-drop transfer in native
MS Office formats to/from any control.
www.quasidata.com
"Lito Hernanz" <litoh...@earthlink.net> wrote in message
news:3d1ac251_2@dnews...
Lito
"Quasidata" <quasidataATquasidataDOTcom> wrote in message
news:3d1b3753$1_2@dnews...
Thank you very much for coming to my rescue!!
Lito Hernanz
"Quasidata" <quasidataATquasidataDOTcom> wrote in message
news:3d1b3753$1_2@dnews...