Jump to content


Photo

One problem with column variables


  • Please log in to reply
No replies to this topic

#1 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 February 2005 - 05:24 AM

Hi,

I am trying to add next feature into GridView:

When you open Columns Editor, and add one TextualColumn for example, in this moment one

CODE
TextualColumn1: TTextualColumn;


will be added into code (into Form1 interface) as any other component do. You will be able to have Events and you can write something like:

CODE
TTextualColumn1.Header.Caption := 'something';


If you don't like this feature you can set column name to <empty> and variable for TextualColumn1 will disapear from Unit code.

But, I have small problem sad.gif : When I run application (when component is loaded from DFM), variable TTextualColumn1 is not referenced to object in Columns[] array, and when I check TTextualColumn1 i got nil value. In Design time all work fine, when you change name of column in Editor, name will be automaticaly changed in code. Also Events are working perfect (specialy for Button Column smile.gif)

If someone have some expirience with this , this will help me a lot smile.gif I have work on it for days sad.gif

regards
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