P Peter Lewis Active Member Licensed User Longtime User May 11, 2017 #1 Hi I have tried everything and this is still not working. If you have any ideas, please let me know B4X: Main.RootPane.LoadLayout("1") 'Load the layout file. TableView1.SetColumns(Array As String("Cust No.", "Name", " Phone", "Contact", "Province")) TableView1.SetColumnWidth(0,210) TableView1.SetColumnWidth(1,250) TableView1.SetColumnWidth(2,210) TableView1.SetColumnWidth(3,250) TableView1.SetColumnWidth(4,210) TableView1.SetColumnSortable(0, True)
Hi I have tried everything and this is still not working. If you have any ideas, please let me know B4X: Main.RootPane.LoadLayout("1") 'Load the layout file. TableView1.SetColumns(Array As String("Cust No.", "Name", " Phone", "Contact", "Province")) TableView1.SetColumnWidth(0,210) TableView1.SetColumnWidth(1,250) TableView1.SetColumnWidth(2,210) TableView1.SetColumnWidth(3,250) TableView1.SetColumnWidth(4,210) TableView1.SetColumnSortable(0, True)
Erel B4X founder Staff member Licensed User Longtime User May 11, 2017 #2 What happens when it doesn't work? Can you upload the project (File - Export as zip)? Upvote 0
P Peter Lewis Active Member Licensed User Longtime User May 11, 2017 #3 Erel said: What happens when it doesn't work? Can you upload the project (File - Export as zip)? Click to expand... Hi It just does not display the column names and the widths do not set. I am sure it is not the enviroment, it must be the way I did the program. you will need to run update under the File menu first to generate all the local DB files. Then I tried the table under Customer and under Stock Thank you Upvote 0
Erel said: What happens when it doesn't work? Can you upload the project (File - Export as zip)? Click to expand... Hi It just does not display the column names and the widths do not set. I am sure it is not the enviroment, it must be the way I did the program. you will need to run update under the File menu first to generate all the local DB files. Then I tried the table under Customer and under Stock Thank you
klaus Expert Licensed User Longtime User May 11, 2017 #4 Move the TableView1.SetColumnWidth(0,210) lines after DBUTILS.ExecuteTableView(DB.sql1... Upvote 0
P Peter Lewis Active Member Licensed User Longtime User May 11, 2017 #5 klaus said: Move the TableView1.SetColumnWidth(0,210) lines after DBUTILS.ExecuteTableView(DB.sql1... Click to expand... Hi Klaus Thank you , that worked perfectly Upvote 0
klaus said: Move the TableView1.SetColumnWidth(0,210) lines after DBUTILS.ExecuteTableView(DB.sql1... Click to expand... Hi Klaus Thank you , that worked perfectly