Combobox value not showed in the datagridview
-
Hai, Am developing vb.net2008 windows application. I have two datagridview table datagridview1 column one has combobox. It stored 4 string. below see the code.
Dim gridComboBox As New DataGridViewComboBoxCell With datagridFunction If .Rows.Count = 0 Then Return 0 gridComboBox.Items.Add("LTrim") gridComboBox.Items.Add("RTrim") gridComboBox.Items.Add("Insert") gridComboBox.Items.Add("Replace") .Item(0, datagridFunction.CurrentRow.Index) = gridComboBox .Visible = True End With
am using following code
datagridview1.rows(0).cells(0).value = "LTrim"
datagridview1.rows(1).cells(0).value = "RTrim"but combobox value not showed in the datagridview. I don't know how to show combobox value here. plz help me very urgent
-
Hai, Am developing vb.net2008 windows application. I have two datagridview table datagridview1 column one has combobox. It stored 4 string. below see the code.
Dim gridComboBox As New DataGridViewComboBoxCell With datagridFunction If .Rows.Count = 0 Then Return 0 gridComboBox.Items.Add("LTrim") gridComboBox.Items.Add("RTrim") gridComboBox.Items.Add("Insert") gridComboBox.Items.Add("Replace") .Item(0, datagridFunction.CurrentRow.Index) = gridComboBox .Visible = True End With
am using following code
datagridview1.rows(0).cells(0).value = "LTrim"
datagridview1.rows(1).cells(0).value = "RTrim"but combobox value not showed in the datagridview. I don't know how to show combobox value here. plz help me very urgent
Not enough information to help you. Please, elaborate.