Jump to content


qi130

Member Since 04 Jul 2007
Offline Last Active Sep 25 2025 12:23 PM
-----

Posts I've Made

In Topic: How [un]check a whole NxCheckboxColumn?

30 November 2024 - 07:55 PM

Hello Boki,

 

In fact, I try to deal with delete a recreate the column.

 

But I experience malfunction as, using this code:

gridWagonSet.Columns.Delete(0);
gridWagonSet.Columns.Insert(TNxCheckBoxColumn,0);
with gridWagonSet.Columns[0] do begin
     Alignment:=taCenter;
     Width:=25;
end;

the column is in 2nd position in the grid :blink: and I need to add "Position:=0;"  in the with statement

 

Looking at the TNxColumns.InsertColumn procedure, : (called from TNxColumns.Insert function)

FItemsList.Insert(Pos, Column);
FPositionItemsList.Add(Column);

Shouldn't you insert (not Add) into the 2nd TList ?