0
Answer

Can a datagrid be transposed to have different datatypes in the cells of a column?

Photo of AB

AB

19y
2k
1

Hello. Here's what I am trying to finally get (on a Windows Forms application in C#) on a datagrid:

VariableA    3.50%
VariableB      10
VariableC    1.213
VariableD     25%

Ordinarily, the datagrid would be a single row of 4 cells with matching 4 columns (VariableA, VariableB, VariableC, VariableD). But once transposed, the look would be the one above.

Also, the datagrid is to be editable.

I've been stuck on this for ages now. It's not difficult to transpose but to have different formatting for the cells in the second column ... Can it be done?

Any leads would be appreciated. Thanks!