Answer the question
In order to leave comments, you need to log in
How to make in datagrid (WPF) data binding for columns and not rows?
Hello!
There is a Calc class. At the input -- parameters int a, int b, bool c. The output parameters are int d, double e, bool f.
Let the connection of input and output parameters be as follows:
d = a + b
e = (a*a) / (b*b)
f = !c
I made such a class, then created an ObservableCollection containing the results of 3 calculations.
I need to make the following table:
The first column is the names of the parameters: a, b, c, d, e, f.
The second column is calculation 1, the third column is calculation 2, and so on.
In each column (except the first one), the first 3 cells (for a, b ) must contain inputs for editing, line 3 (for c) is a checkbox, the rest are just text.
==================================
| Параметр | Расчёт 1 | Расчёт 2 |
==================================
| a | [ 1] | [ 5] |
| b | [ 2] | [ 10] |
| c | [x] | [ ] |
| d | 3 | 15 |
| e | 0.25 | 0.25 |
| f | false | true |
==================================
Answer the question
In order to leave comments, you need to log in
You can try following these tips: https://archive.codeplex.com/?p=rotatedwpfdatagrid .
Well, or abandon the DataGrid and look towards other controls.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question