Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TWebDBGrid and TWebDBComboBox

 Post Reply Post Reply
Author
Weetch Russell View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2012
Posts: 199
Post Options Post Options   Quote Weetch Russell Quote  Post ReplyReply Direct Link To This Post Topic: TWebDBGrid and TWebDBComboBox
    Posted: 27 Mar 2020 at 11:04am
Is there a way to use a TWebDBComboBox in a TWebDBGrid? Is there a demo of that, or something similar?

Thanks
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 9194
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2020 at 6:08pm
A possible way to insert a combobox in a TWebDBGrid cell is:

begin
  WebDBComboBox1.ElementPosition := epRelative;
  WebDBComboBox1.WidthStyle := ssPercent;
  WebDBGrid1.CellElements[1,1].appendChild(WebDBComboBox1.ElementHandle);
end;
Back to Top
Weetch Russell View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2012
Posts: 199
Post Options Post Options   Quote Weetch Russell Quote  Post ReplyReply Direct Link To This Post Posted: 28 Mar 2020 at 3:30pm
so you'd need to create it for each row, or move it when a row was selected.
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 9194
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 29 Mar 2020 at 3:39pm
Yes, that is correct.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down