OnColumnMoved result unexpected lazarus / 16-Databases ---------------------------------------------------------------------- fmc · 2019-11-14 05:04 In testing the integer values of a column moved (FromIndex / ToIndex), I was surprised to see the ever-hidden ID column started at Index 1 instead of Index 0.  The Table for the Grid (I tested this on both the TDBGrid and the TRxDBGrid) is like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 'CREATE TABLE IF NOT EXISTS customers(' +    'cust_id INTEGER PRIMARY KEY AUTOINCREMENT, ' +    'cust_fname VARCHAR(20), ' +    'cust_lname VARCHAR(20), ' +    'cust_company VARCHAR(30), ' + ... When I moved the fname column @index 1 one slot to the right, I thought it'd be in index 2 position.  But, it wasn't.  It was @index 3 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm_Main.DBGrid_AddCustomersColumnMoved(Sender: TObject; FromIndex,  ToIndex: Integer);var  x,y : Integer;begin  x := FromIndex;  y := ToIndex;  ShowMessage('Column moved from ' + IntToStr(x) + ' to ' + IntToStr(y));end; The result is shown in the pic below.  I just thought it was interesting how these two Grids' Column Titles start @index 1 instead of index 0.  On face value, it affects nothing I can see.  Or am I missing something here?