回答編集履歴

1

DataGridView の上が切れていたので

2019/02/13 05:17

投稿

Zuishin
Zuishin

スコア28673

test CHANGED
@@ -98,6 +98,18 @@
98
98
 
99
99
  }
100
100
 
101
+ var dataGridView = new DataGridView()
102
+
103
+ {
104
+
105
+ Parent = this,
106
+
107
+ Dock = DockStyle.Fill,
108
+
109
+ DataSource = people
110
+
111
+ };
112
+
101
113
  var panel = new Panel()
102
114
 
103
115
  {
@@ -128,18 +140,6 @@
128
140
 
129
141
  comboBox.DataBindings.Add(new Binding(nameof(ComboBox.SelectedItem), this, nameof(SalarySystem), false, DataSourceUpdateMode.OnPropertyChanged));
130
142
 
131
- var dataGridView = new DataGridView()
132
-
133
- {
134
-
135
- Parent = this,
136
-
137
- Dock = DockStyle.Fill,
138
-
139
- DataSource = people
140
-
141
- };
142
-
143
143
  }
144
144
 
145
145