Click here to Skip to main content
15,891,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I tried to create a project with table item. my table have three columns, but the third column can not display, because the width of mobile screen just enough to display two column.
So, i want to create a vscroll, so user can pull this to see third column.
I has searched in internet, but i can not found the way to create a vscroll, my table just show hscrool.
Thanks for any help!

My code here:
[CODE]

C#
   //create table
   if (myTable == null) {
     myTable = new TableItem(getDisplay(), "mytable");
   myTable.setModel(getMyTableModel());
   }

    //create table model
     if (myTableModel == null) {
    myTableModel = new SimpleTableModel(new java.lang.String[][] {
        new java.lang.String[] { "", "", "" },
        new java.lang.String[] { "", "", "" },
        new java.lang.String[] { "", "", "" },
        new java.lang.String[] { "", "", "" },
        new java.lang.String[] { "", "", "" },
        new java.lang.String[] { "", "", "" },
     }, new java.lang.String[] { "col1", "col2", "" });
}


[/CODE]
Posted
Updated 19-May-13 18:52pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900