Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting entire column  RSS feed

 
anu anand
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a table. I want to select a column header and list all the values in that column. Is there any way in SWT that this can be done? TableColumn of SWT does not provide any such method to get values in a paricular column?

When I select a column...can i get to know at which index is it?
thanks
Anu.

code :
for(int i=0;i {
table.getColumn(i).pack();
table.getColumn(i).addSelectionListener(new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
TableColumn tc = (TableColumn)e.widget;
//how to get all values in this column?
//how to get at which index is the column selected?

}
}
);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!