Page 1 of 1

Sales Order Line Custom Fields

PostPosted: Tue May 26, 2026 3:11 pm
by SBarnes
Is there a way to programatically control the position/order of sales order line custom fields in grdLines or is the grid manager in the user interface the only way to do it?

Re: Sales Order Line Custom Fields  Topic is solved

PostPosted: Fri Jul 24, 2026 2:50 pm
by Mike.Sheen
SBarnes wrote:Is there a way to programatically control the position/order of sales order line custom fields in grdLines or is the grid manager in the user interface the only way to do it?


Sure - you can move the column yourself in code:

Code: Select all
grid.ActiveSheet.MoveColumn(5, 10); // moves column 5 to column 10


you can get the column number from the column Key with:
Code: Select all
int colNo = grid.ActiveSheet.GetColumnFromTag(null, "ColumnKey").Index;