Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[nebula-dev] New topic in forum Nebula, called Using Grid as List, by Chinmay Gore

Title: Eclipse Community Forums
Subject: Using Grid as List Author: Chinmay Gore Date: Mon, 30 September 2013 17:12
Hi
I need to support zero columns in Grid. When columns are zero it should show GridItems as a list.( Currently this feature is being supported in Tree control also)

Following is the snippet of my code

Grid grid = new Grid(parentComposite,SWT.BORDER);
// GridColumn column = new GridColumn(grid, 0);
// column.setWidth(200);
GridItem item = new GridItem(grid, 0);
item.setText("Zero column item");

So unless I declare column explicitly, the control does not show GridItem. Any help?
[ Reply ][ Quote ][ View Topic/Message ][ Unsubscribe from this forum ]

Back to the top