|
Re: How to delete a cell in a table?? [message #895960 is a reply to message #893159] |
Mon, 16 July 2012 16:26 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi Weesh,
You need to use a TableCursor, for an example see
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet96.java
..
Grant
On 7/2/2012 7:19 PM, Tux Pengy wrote:
> Hello RCP community,
>
> This is my first RCP Project,
> I succeded to view a table which views each person's name & his brothers
> name if existed.
> The Headers are Person, Bro#1 , Bro#2 .......Bro#10
>
> What I want to do is to enable cell selection and to add a command to
> delete a certain brother...
>
> For Example:
>
> Person Bro1 Bro2 Bro3 Bro4 Bro5
> John Peter Adam Ryan Bryan Empty
> Tony John Robert Empty Empty Empty
>
> I want to select Adam & delete it ( It ll easy be removed from the model
> (Person.removeBrother () , then refresh the table )
>
> But it seems that I can only select the first column
>
>
>
>
>
> Best Regards,
> Weesh
|
|
|
Powered by
FUDForum. Page generated in 0.02756 seconds