Jump to content


Photo

how to assign fieldname columns dynamicly


  • Please log in to reply
1 reply to this topic

#1 Bagong

Bagong
  • Members
  • 34 posts

Posted 03 October 2021 - 04:54 AM

Code :

 

NextDBGrid6.Columns[0].Fieldname := 

 

Fine error



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 04 October 2021 - 09:09 PM

Hello,

 

For this purpose, the solution is same as for design-time. You need to set Columns[x].DataBinding.FieldName := 'MyField';


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