- For each UItable, within the CellSelectionCallback, get the currently selected cell coordinates.
- Within the same callback function, use those coordinates to set the other UI tables (see link above).
How to select/highlight a cell/row in the uitable programmatically?
55 views (last 30 days)
Show older comments
I am working with 3 big XLS files, each opened in 3 uitable. When i click on a cell of any of the uitable, row with matching time from other 2 tables should be highlighted.
If the row is not visible, _ uitable_ should scroll accordingly.
So, how to programmatically highlight a row or column of a uitable?
If it is impossible, is there any other solution to the problem??
0 Comments
Accepted Answer
Adam Danz
on 20 Aug 2018
Edited: Adam Danz
on 10 May 2021
Matlab R2021a and later
Starting in Matlab r2021a you can programmatically scroll to any row, column, or specific cell in a uitable using the scroll function (see Four New App Features in MATLAB R2021a).
Prior to Matlab R2021a
Here's an explanation of how to programmatically select a cell from a UI table.
The workflow you'll follow for your description is this
I'm not sure if this will automatically scroll or not, though. If you get stuck, follow-up with a comment below.
More Answers (0)
See Also
Categories
Find more on Spreadsheets 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!