回答編集履歴
1
コード記載
test
CHANGED
@@ -21,3 +21,55 @@
|
|
21
21
|
今時点ではこの程度の回答しかできませんので、現在どこまで実装できてどこがわからないので
|
22
22
|
|
23
23
|
提示してください。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
まずはDataGridのConboBoxを表示させるところまで。
|
28
|
+
|
29
|
+
これをたたき台にやりたいことを明記して頂けると。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```XAML
|
34
|
+
|
35
|
+
<Window x:Class="WpfApplication2.MainWindow"
|
36
|
+
|
37
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
38
|
+
|
39
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
40
|
+
|
41
|
+
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
42
|
+
|
43
|
+
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
|
44
|
+
|
45
|
+
<Window.Resources>
|
46
|
+
|
47
|
+
<x:Array x:Key="hogeList" Type="sys:String">
|
48
|
+
|
49
|
+
<sys:String>1</sys:String>
|
50
|
+
|
51
|
+
<sys:String>2</sys:String>
|
52
|
+
|
53
|
+
</x:Array>
|
54
|
+
|
55
|
+
</Window.Resources>
|
56
|
+
|
57
|
+
<Grid>
|
58
|
+
|
59
|
+
<DataGrid ItemsSource="{StaticResource hogeList}">
|
60
|
+
|
61
|
+
<DataGrid.Columns>
|
62
|
+
|
63
|
+
<DataGridTextColumn Header="AAA" />
|
64
|
+
|
65
|
+
<DataGridComboBoxColumn Header="BBB" />
|
66
|
+
|
67
|
+
</DataGrid.Columns>
|
68
|
+
|
69
|
+
</DataGrid>
|
70
|
+
|
71
|
+
</Grid>
|
72
|
+
|
73
|
+
</Window>
|
74
|
+
|
75
|
+
```
|