andypandyswe
Programmer
I'm trying to show four different values, one above the other, in each dataGrid cell.
I've solved this by combining the four values into a single string with \n inbetween the values. Added the values to a table containing stringcolumns and connected the table to the datagrid. The problem is that in the cell that is active (one always is right from the start) the \n seems to disappear because the values are all on top of eachother and on a single line. When you move the focus to another cell (by klicking it, or using the arrowkeys) that cell's values get garbled and the previous cell is alright. When I set the dataGrid's "Enabled" -value to false the problem goes away but the ability to scroll goes away with it, and since the datagrid is to large to fit in the window, that's not a working solution.
Anyone have a solution or a workaround of some sort?
I've solved this by combining the four values into a single string with \n inbetween the values. Added the values to a table containing stringcolumns and connected the table to the datagrid. The problem is that in the cell that is active (one always is right from the start) the \n seems to disappear because the values are all on top of eachother and on a single line. When you move the focus to another cell (by klicking it, or using the arrowkeys) that cell's values get garbled and the previous cell is alright. When I set the dataGrid's "Enabled" -value to false the problem goes away but the ability to scroll goes away with it, and since the datagrid is to large to fit in the window, that's not a working solution.
Anyone have a solution or a workaround of some sort?