Jump to content


Photo

NxComboBoxColumn6: how to get selected item into cell?


  • Please log in to reply
5 replies to this topic

#1 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 14 June 2023 - 11:16 AM

Hi, Boki:

 

Trying to convert:

 

 Boki, how do I get the selected item into the cell with a ComboBoxColumn?

 

I can see that perhaps this event may not even be necessary with NG6.

Same with the issue of reassigning font.color to the column.

 

Can you please comment on this?

 

Thank you,

Chuck

 

PROCEDURE TfrmCVTable.NxComboBoxColumn6Select(Sender: TObject);
BEGIN
  WITH GridView2 DO  //GridView2 is NG6 grid
  BEGIN
  //not sure how to do this in NG6
    Cell[SelectedCol, SelectedRow].AsString := TNxComboBoxColumn6(Sender).
      .Editor.Text; <== Boki, how do I get the selected item into the cell with a ComboBoxColumn?
 
    // having the same issue here as the other cells/columns, the color keeps
    // changing
    Columns[SelectedCol].Font.Color :=
      StringToColor(ColFontColor[SelectedCol]);
  END;
END;


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 17 June 2023 - 01:07 PM

Hi Chuck,

 

It seems that you need something similar to ImmediateAssign that exists in TNxListColumn6: http://help.bergsoft...ImmediateAssign

 

I can add it to the TNxComboBoxColumn6 too.


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.

#3 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 19 June 2023 - 10:50 AM

Thank you, Boki, that would be great!

Chuck



#4 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 21 August 2023 - 05:52 PM

Hi, Boki:

As of the 8/23 update the TNxComboBoxColumn6.ImmediateAssign property is not added. Can you please add this property?

 

Thank you,

Chuck



#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 14 September 2023 - 11:37 PM

Hi Chuck,

 

Please sorry for long wait,

 

It's added, but maybe you need to recompile the packages? You can try it in run-time maybe, just to see if you are using the correct version.


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.

#6 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 25 September 2023 - 12:01 PM

Thank you Boki!

 

i keep forgetting to recompile the packages after the updates. Important when you change the properties/events!

 

Chuck






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users