Hi Higer,

sorry, I don't understand where to obtain the point parameter for getColumn(Point point) from.

Kindest regards,
Michael


zhong nanhai schrieb:
Hi,

There is a getColumn function in Grid class:
public GridColumn getColumn(Point point)

You can use this method to get the column , and then use
Grid.indexOf(GridColumn column) to get its corresponding index

Regards,
higer



On 7/9/09, Michael Lodemann <[email protected]> wrote:
Hello,

sorry for this obvious newbie question, but how can I detect which cell
(column index) of a GridItem is selected?
With "grid.getSelection()[0]" I receive a GridItem representing a row.
But I cannot find a method allowing me to determine which index of the
GridItem is selected.
Of course I set the flag "grid.setCellSelectionEnabled(true);".

Thanks,
Michael
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to