Jump to content


Photo

Nxdbcombobox


  • Please log in to reply
1 reply to this topic

#1 Afiag

Afiag
  • Members
  • 117 posts

Posted 23 March 2010 - 01:33 AM

I want to use a NxDBCombobox in my DBGrid. The problem is, how can I specify for each record what the combobox options will be ? (Because they will be different for every record), they options may be hardcoded they won't ever change. Remember I don't have one "list" and that's it, every record in the grid will have different combobox options which may be hardcoded (or looked up somehow, like in a access database for example)

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 March 2010 - 05:43 AM

Hello Afiag,

Maybe you can adjust popup-list in OnBeforeEdit event. In this event you quickly change Items property.

You may always access to the Editor property TNxComboBox(NxColumn1.Editor).Items...

Basically you will need in one of events such as OnBeforeEdit to change content of combo-box.

I hope that this helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users