Jump to content


littlebigfred

Member Since 01 Feb 2008
Offline Last Active Apr 11 2010 11:40 PM
-----

Posts I've Made

In Topic: Using TNxCalcColumn and TNxGuidColumn?

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

In Topic: Using TNxCalcColumn and TNxGuidColumn?

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 :-/

In Topic: Hidding header to display rows as Slides?

14 October 2009 - 03:16 PM

Also, is there a way to display all the columns of a row at run-time, through code only?

For some reason, when I switch to Slide mode, only data from Col2 are displayed:

http://img79.imagesh...displayallz.jpg

In Topic: goIndicator? lsHorizontalOnly?

13 October 2009 - 10:26 PM

Hello Boki

I don't display the indicator column, so that's why I wasn't seeing anything.

QUOTE
When GridLinesStyle = lsHorizontalOnly only horizontal grid lines are painted. This may give a nice effect.


I'm not seeing the lines when I do this. Do I need something else?

CODE
procedure TForm1.Button1Click(Sender: TObject);
begin
  With NextGrid1 do begin
    Columns.Add(TNxTextColumn,'My Col1');
    Columns.Last.Name := 'col1';

    Columns.Add(TNxTextColumn,'My Col2');
    Columns.Last.Name := 'col2';

    AddRow(1);
    CellsByName['col1',LastAddedRow] := 'test';

    AddRow(1);
    CellsByName['col2',LastAddedRow] := 'test2';

    //Lines not displayed
    GridLinesStyle := lsHorizontalOnly;
  end;
end;


Thank you.

In Topic: Can NextGrid display sections like Inspector?

13 October 2009 - 08:40 PM

QUOTE
//Columns in grid are created at design-time
//because TNxTreeView.ExpandLock and TNxTreeView.ShowButtons can't be called at run-time
procedure TForm1.FormActivate(Sender: TObject);


My mistake: I don't know enough about Delphi to know that a control can be typecast. In this particular case, a TreeColumn can be created at run-time and have its properties set thusly:

CODE
Columns.Add(TNxTreeColumn,'Key');
Columns.Last.Name := 'key';

//Those properties aren't available at design-time without typecasting
TNxTreeColumn(ColumnByName['key']).ExpandLock := False;
TNxTreeColumn(ColumnByName['key']).ShowButtons := False;
ColumnByName['key'].Enabled := False;


HTH,