![]() |
DBGrid mit DBComboBox
Hallo!
Ich möchte in einem DBGrid eine DBComboBox einbinden, d.h. man kann in dem DBGrid aus einer Liste, die auch aus meiner DB stammt, etwas auswählen. Hat jemand eine Idee? Víelen Dank im Vorraus. Gruß SvenT |
Re: DBGrid mit DBComboBox
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo SvenT,
Delphi-Quellcode:
Bild als Anlage beigefügt.
// PickList mit PosArt zur Auswahl in tsPos erzeugen
UP_DBActiv(Tab3, SessN, DataPath, fnPosArt); Tab3.IndexName := ixKurz; dbg32.Columns.Items[0].PickList.Clear; Tab3.First; while not Tab3.Eof do begin s := copy(Tab3.FieldByName('Kurz').AsString + ' ', 1, 6) + Tab3.FieldByName('Lang').AsString; dbg32.Columns.Items[0].PickList.Add(s); Tab3.Next; end; // Anzahl der Auswahlfelder untereinander um ScrollBar zu verhindern dbg32.Columns.Items[0].DropDownRows := Tab3.RecordCount; Tab3.Close; mfg eddy [edit=Daniel B]Delphi-Tags korrigiert. Mfg, Daniel B[/edit] |
Re: DBGrid mit DBComboBox
Hallo Eddy!
Vielen Dank für Deine Hilfe. Bei mir klappt es jetzt wunderbar. Gruß SvenT |
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:46 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz