Progress2007
Active member
- Joined
- Sep 5, 2008
- Messages
- 25
- Programming Experience
- 1-3
Hi i ahve a dataGridView which has some columns. Wht i want if user select a cell then that cell should be convert to combobox cell and we can bind it to a datasource , with display member and value meber.
i ahve wrtten some code for this.
Dim l_ComboCell As New DataGridViewComboBoxCell
Dim l_rowPosition = dgvReport.CurrentCellAddress.X
Dim l_colPosition = dgvReport.CurrentCellAddress.Y
l_ComboCell.DataSource = l_tempTableView
l_ComboCell.DisplayMember = "GroupName"
l_ComboCell.ValueMember = "GroupNumber"
Now my prob is that when i select a value from this combo box , after sletein the value it is displaying the Group number instead on GroupName.
how can i do this
i ahve wrtten some code for this.
Dim l_ComboCell As New DataGridViewComboBoxCell
Dim l_rowPosition = dgvReport.CurrentCellAddress.X
Dim l_colPosition = dgvReport.CurrentCellAddress.Y
l_ComboCell.DataSource = l_tempTableView
l_ComboCell.DisplayMember = "GroupName"
l_ComboCell.ValueMember = "GroupNumber"
Now my prob is that when i select a value from this combo box , after sletein the value it is displaying the Group number instead on GroupName.
how can i do this