DataGrid not showing data
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
DataGrid not showing data
Hi,
My dg has just 2 columns and 12 lines of data, all visible when clicking on the third icon from left in inspect mode. and with colours assigned under the sixth icon from the left. The problem is that when in operating mode none of the data is visible.
I can edit the data (that remains invisible) by using a set up of Ctrl-6 and Ctrl-7 to scroll up and down the lines of (invisible) data with ask command, but everything remains invisible.
My dg has just 2 columns and 12 lines of data, all visible when clicking on the third icon from left in inspect mode. and with colours assigned under the sixth icon from the left. The problem is that when in operating mode none of the data is visible.
I can edit the data (that remains invisible) by using a set up of Ctrl-6 and Ctrl-7 to scroll up and down the lines of (invisible) data with ask command, but everything remains invisible.
Re: DataGrid not showing data
Hi CAsba,
very hard to tell from afar...
Textcolor is set correctly, so no white text on white background?
Textsize is correct?
You can send me the stack if oyu like an I will take a quick look, if you like: klaus AT major-k.de
Best
Klaus
very hard to tell from afar...
Textcolor is set correctly, so no white text on white background?
Textsize is correct?
You can send me the stack if oyu like an I will take a quick look, if you like: klaus AT major-k.de
Best
Klaus
Re: DataGrid not showing data
If data isn't displaying correctly, you should check the data structure.CAsba wrote: ↑Sat Jan 17, 2026 5:13 pmHi,
My dg has just 2 columns and 12 lines of data, all visible when clicking on the third icon from left in inspect mode. and with colours assigned under the sixth icon from the left. The problem is that when in operating mode none of the data is visible.
I can edit the data (that remains invisible) by using a set up of Ctrl-6 and Ctrl-7 to scroll up and down the lines of (invisible) data with ask command, but everything remains invisible.
The internal data should be a numerically keyed array - you can views this in the property inspector (go the 'custom' tab that shows custom properties and use the drop-down to view dgCache.
I should be in the format
Code: Select all
[1][column1]
[1][column2]
[2][column1]
[2][column2]
...
[n][column1]
[n][column2]Re: DataGrid not showing data
Hi all,
it turned out that the datagrid in question had a VERY RARE case of data corruption.
There was a (numeric) KEY missing in the dgdata: I could let LC fix this by itself by simply adding a CR to the dgtext of the dg and immeditaley removed it again.
Obviously this made LC create a new "index" in the data and that fixed the whole thing. Best
Klaus
it turned out that the datagrid in question had a VERY RARE case of data corruption.
There was a (numeric) KEY missing in the dgdata: I could let LC fix this by itself by simply adding a CR to the dgtext of the dg and immeditaley removed it again.
Obviously this made LC create a new "index" in the data and that fixed the whole thing. Best
Klaus
Re: DataGrid not showing data
I would just be wary that this isn't a corruption but a bug in the OP's code.
If it is a bug, it should recur.
If this reproducibly happens again, then make sure you're code isn't assigning grade to an empty key or some such.
If it is a bug, it should recur.
If this reproducibly happens again, then make sure you're code isn't assigning grade to an empty key or some such.