Jump to content


Photo

Using TNxCalcColumn and TNxGuidColumn?


  • Please log in to reply
4 replies to this topic

#1 littlebigfred

littlebigfred
  • Members
  • 176 posts

Posted 13 October 2009 - 10:19 PM

Hello

I'm going through the articles in the DevNet section, and would like to know how to use the TNxCalcColumn column and the TNxGuidColumn column.

CODE
NextGrid1.Columns.Add(TNxCalcColumn,'My Calc');

//E2003 Undeclared identifier: 'TNxGuidColumn'
NextGrid1.Columns.Add(TNxGuidColumn,'My GUID');


Would someone have a small sample handy?

Thank you.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 14 October 2009 - 12:22 AM

Hello Fred,

NxCalcColumn is same as Number Column but InplaceEditor is different (NxCalcEdit is used).

NxGuidColumn is used for handling Windows TGUID strings. It may be handy in some situations.

To use it in run-time add NxVirtualColumn into uses section of unit.

Best 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.

#3 littlebigfred

littlebigfred
  • Members
  • 176 posts

Posted 22 October 2009 - 03:17 AM

Thanks for the information.

Actually, what I think is missing, is some tutorial on the different types of columns supported by NextGrid, with a bit of examples for each.

I went through help.chm, dn.bergsoft.net and it seems the only small source of information are the demos, but it's always more time-consuming to figure out how a component works by having to go through source code :-/

#4 littlebigfred

littlebigfred
  • Members
  • 176 posts

Posted 22 October 2009 - 10:22 AM

I guess we shouldn't hold our breath for a User's Manual, because it's a lot of work to write this kind of thing, but as a so-so solution, is there a way to get the list of properties/methods for each column type, ie. the list that drops down when typing a "." after a column?

For instance, in...

CODE
TNxButtonColumn(Cell[ColumnByName['TNxButtonColumn'].Index,LastAddedRow]).


... I'd like to find a document that lists all the items that can be used after the dot (methods, properties, events).

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 24 October 2009 - 10:31 PM

Hello Fred,

I will made a page which will better describe each column.

Also Help file will be updated very soon.

Best 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