After column is added, it can be easily configured (customised) with following techniques:
// 3rd parameter set ShortCaption property with NextGrid61.Columns.Add(TNxTextColumn6, 'Number of Order', 'No') do begin Alignment := taRightJustify; Width := 60; end;Or with handy LastAddedColumn (there is also LastAddedRow):
NextGrid61.Columns.Add(TNxTextColumn6, 'Number of Order', 'No'); NextGrid61.LastAddedColumn.Alignment := taRightJustify;If you need to use properties which are not in base TNxColumn6 class returned by Add method, use typecasting:
with NextGrid61.Columns.Add(TNxNumberColumn6, 'Number of Order', 'No') as TNxNumberColumn6 do begin // Still good Alignment := taRightJustify; Width := 60; // Only in TNxNumberColumn6 Precision := 2; SpinButtons := False; end;