Jump to content


Photo

NextGrid List Column add Items by Runtime


  • Please log in to reply
3 replies to this topic

#1 af99

af99
  • Members
  • 5 posts

Posted 06 August 2018 - 12:42 PM

Hello,

 

i want to add for each row in the ListColumn diffrent Items.

Example

  • Row 1 ListColumn contains (red, yellow)
  • Row 2 ListColumn contains (monday, tuesday)
  • Row 3 ListColumn contains (1,2)
  • ...

how can i do this?

 

Thanks for help Andreas



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,735 posts
  • Gender:Male

Posted 07 August 2018 - 07:47 PM

Hi,

I suggest that you take a look at http://developer.ber...=683&lang=en-usand topic OnInplaceEditInsert

There you can see how I used custom inplace-edit and populated it with my data.

You can do something similar. You only need to access to Column[x].InplaceEdit as TNxComboBox6 and then access to standard Items (TStrings) property.

Hope that it helps.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.

#3 af99

af99
  • Members
  • 5 posts

Posted 08 August 2018 - 02:02 PM

Hi Boki,

 

sorry i am using NextGrid 5. Is there also a solution?

 

Andreas



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,735 posts
  • Gender:Male

Posted 09 August 2018 - 05:46 PM

Hi Andreas,

I got similar request before and this is one of the reasons I added this new event. Unfortunately it's harder in v5.

Maybe you can try with OnBeforeEdit event and then use similar technique. You need to typecast Editor property of column (to TNxComboBox) and there you manage items inside combobox control as with normal Delphi TComboBox.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users