Checkboxes in row of UITable

22 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 9 de Oct. de 2018
Respondida: MathWorks Support Team el 9 de Oct. de 2018
How do I set up one row of checkboxes just below the variable names in my UITable?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 9 de Oct. de 2018
This can be done by using cell array data in the UITable and assigning the top row of the cell array to logical values.
The following code is an example that shows how this can be done:
>> t = uitable(uifigure)
>> d = {true, false, true};
>> d(2:50,1:3) = {rand(1,1)};
>> t.Data = d
>> t.ColumnEditable = true;
>> t.ColumnName = ["a" "b" "c"];

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by