Jump to content


Photo

Columns.Insert not actually inserting column, but adding to last position


  • Please log in to reply
1 reply to this topic

#1 BelangerC

BelangerC

    Senior Member

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

Posted 25 September 2023 - 10:43 AM

Hi, Boki:

 

Tried:

 

WITH GridView2 DO
    BEGIN
 NxTableGraph6 :=  TNxIconColumn6.Create(GridView2);
     //this was not inserting new column; putting as last column
     Columns.Insert(1,NxTableGraph6);
....
end;
 
No INSERT, column added at last position.
 
Am I missing something?
 
Thank you,
Chuck Belanger


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 September 2023 - 01:07 PM

Hi Chuck,

 

You just need to manually set Position after the insert.


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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users