광고


[C#] DataGridViewComboBoxCell : Get Selected Index, Set Index C#

1
2
3
4
5
6
7
8
9
10
11
12
13
// DatagridViewCombobox Value Change
 
DataGridViewComboBoxCell cbx;
 
cbx = (DataGridViewComboBoxCell)dgvScript.Rows[idx - 1].Cells[3];
dgvScript.Rows[idx - 1].Cells[3].Value = cbx.Items[int.Parse(lst[idx][3])];
 
 
// Get Selected index
 
DataGridViewComboBoxCell cbxV = (DataGridViewComboBoxCell) dgvScript.Rows[col].Cells[3];
int value = cbxV.Items.IndexOf(cbxV.Value);
 
cs

덧글

댓글 입력 영역



광고

통계 위젯 (화이트)

00
7
9534

TEST