My client asks us to have a form with DataGrid, which is pivoted from the standpoint of how the actual data in a database is.
Below is the (simplified) look of my database.
│id|stuff│flag│column│column│column│
------------------------------------
│35| AAA │ 0 │ etc. │ blah │ yadda│
│58│ BBB │ 1 │ etc. │ blah │ yadda│
│78│ CCC │ 0 │ etc. │ blah │ yadda│
Below is what I'm asked to create.
│HEADER│CODE│DATA1│DATA2│DATA3│
-------------------------------
│ID | #1 │ 35│ 58│ 78│
│STUFF │ #2 │ AAA│ BBB│ CCC│
│FLAG │ #3 │ 0│ 1│ 0│
│COLUMN│ #4 │ etc.│ etc.│ etc.│
│COLUMN│ #5 │ blah│ blah│ blah│
│COLUMN│ #6 │yadda│yadda│yadda│
The flag column is supposed to be either 0 or 1, so I wanted that column to be a DataGridCheckBoxColumn
, but it's pivoted! Of course, I can (with ease) let the cell only accept 1 or 0 in validation process, yet, I'd still want to know if I could ever make a specified cell in a column have a CheckBox
.