Is it possible that the column format of a UITable depends also on the row ?

The UITable.ColumnFormat field set the format for each column.
I would like if possible to make this format depend on a cell instead of a column.
Is there a way of setting a format to a specific cell within my uitable ?
Thank you,
Arthur

1 comentario

Anas
Anas el 25 de Mzo. de 2025
Movida: Walter Roberson el 25 de Mzo. de 2025
More precisely, I am trying to implement listboxes inside the cells, but the available values of these listboxes depends on the value of uitable.ColumnFormat field. I would like these values to be different from one row to another.

Iniciar sesión para comentar.

Respuestas (1)

VBBV
VBBV el 25 de Mzo. de 2025
Editada: VBBV el 25 de Mzo. de 2025
@Anas Is there a way of setting a format to a specific cell within my uitable ?
yes, you can format individual cells of uitable using uistyle and addStyle .
See the HTML interpreter and OL (ordered list) option for setting the uitable cell properties using uistyle and addStyle for more information

3 comentarios

However, none of the styles available permit establishing list boxes.
The closest you can get is to use HTML to output a non-interactive table inside a cell
Thank you, I will try it.
drop down menu is the component I wanted to mention, not listbox, sorry for the mistake.
The problem raised by your solution is that this ordered list is not interactive. I found a convenient way to do it :
when selecting a dropdown menu inside a table, a callback is triggered and updates the items of the dropdown menu with the ColumnFormat field.

Iniciar sesión para comentar.

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 25 de Mzo. de 2025

Comentada:

el 27 de Mzo. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by