Hello,
What's the best way to do this?
- loop ?
- delete column & recreate it
- hidden procedure I have not seen
Regards
Posted 30 November 2024 - 03:05 PM
Hello,
What's the best way to do this?
- loop ?
- delete column & recreate it
- hidden procedure I have not seen
Regards
Posted 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 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 ?
Posted 01 December 2024 - 02:49 PM
Hi,
I think the best solution is just to loop trough all cells in the column and set values to false. Deleting and inserting column again is probably slower.
0 members, 0 guests, 0 anonymous users