Message Boards Message Boards

0
|
4632 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Tables with buttons to Delete rows

3 Replies

Henrik, Thanks. My code is part of a larger program and to publish it here I cut it off... too much as I realise now. Best regards.

Jesus

Hi Jesus,

I think in your own reply the last line is not correct:

'Manipulate' expects a list as second argument.

Maybe it rather should read:

Dynamic @ Grid[t1, Frame -> All]

Regards Henrik

POSTED BY: Henrik Schachner

I solved my problem

t1 = {#, 2, 3, 4, 5, 
     Button["X", t1 = Delete[t1, Position[t1[[All, 1]], #]]]} & /@ 
   Range[5];
Position[t1[[All, 1]], 4]
Manipulate[Grid[t1, Frame -> All]]

Just in case it may be useful for anybody!

Jesus

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract