Create uitable with ROWS as checkboxes?

4 views (last 30 days)
Lachlan
Lachlan on 13 Sep 2014
Commented: Lachlan on 14 Sep 2014
I understand how to create, use and manipulate logical cells as COLUMNS in a uitable - but is there a way to make the first row, say, all checkboxes? I suspect not since there is no RowFormat property, or something similar.
Any ideas?
  2 Comments
Geoff Hayes
Geoff Hayes on 13 Sep 2014
Lachlan - one "solution" is to just create another uitable with one row and several columns, all of which are logical. Then place this table above the second table on your GUI so that your table appears to have its first row with checkboxes. This could work if you have a fixed number of columns and don't allow the user to scroll left or right (so there is no need to keep the two uitables in synch with respect to which columns get shown).
I'm not all that fond of a solution like this (that's why I quoted "solution") but it may do what you want.
Lachlan
Lachlan on 14 Sep 2014
Hi Geoff, thanks for that, didn't think of something like that :) It could work with scrolling, as long as I include the column labels (1,2,3...) so that the user knows which checkbox corresponds to which data set below. Cheers!

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!