Displaying HTML in DataGrid (table mode) – supported or not?
Posted: Sun Apr 19, 2026 4:56 pm
Hello,
I’m working with a DataGrid in table mode (not form) in LiveCode.
I would like to display formatted text (HTML), for example something like:
<b>Black</b> <font color="red">Red</font> <b>Black</b>
or more concretely (bridge application):
5 ♥ E+2 where only the ♥ symbol is red.
I have tried several approaches:
set the dgText of group "dgTest" to ...
set the dgData of group "dgTest" to ...
using "htmlText" in the array
setting properties like dgProp["htmlText"] or similar
In all cases, the HTML is either displayed as plain text or ignored.
Question:
Is it actually possible to display HTML-formatted text (with partial colors) inside a DataGrid cell in table mode?
If not:
is there a recommended workaround?
or is switching to a form-style DataGrid / custom template the only solution?
Any clarification on what is officially supported would be very helpful.
Thanks in advance!
I’m working with a DataGrid in table mode (not form) in LiveCode.
I would like to display formatted text (HTML), for example something like:
<b>Black</b> <font color="red">Red</font> <b>Black</b>
or more concretely (bridge application):
5 ♥ E+2 where only the ♥ symbol is red.
I have tried several approaches:
set the dgText of group "dgTest" to ...
set the dgData of group "dgTest" to ...
using "htmlText" in the array
setting properties like dgProp["htmlText"] or similar
In all cases, the HTML is either displayed as plain text or ignored.
Question:
Is it actually possible to display HTML-formatted text (with partial colors) inside a DataGrid cell in table mode?
If not:
is there a recommended workaround?
or is switching to a form-style DataGrid / custom template the only solution?
Any clarification on what is officially supported would be very helpful.
Thanks in advance!