S
Sam
Hi,
In this code my combobox is properly filled with all the records in my
dataset. But when I want to set it to a value using selectedvalue, it
just don't work as cboViewTable.SelectedValue will always be equal to
Nothing, although ds.Tables(0).Rows(m_curRow).Item("ViewTable") is
equal to "string1"
What's wrong with this code ?
with cboViewTable
.DataSource = m_frmFields.Control.Tables(3)
.DisplayMember = "table_name"
.ValueMember = "table_name"
End With
cboViewTable.SelectedValue =
ds.Tables(0).Rows(m_curRow).Item("ViewTable")
Thx
In this code my combobox is properly filled with all the records in my
dataset. But when I want to set it to a value using selectedvalue, it
just don't work as cboViewTable.SelectedValue will always be equal to
Nothing, although ds.Tables(0).Rows(m_curRow).Item("ViewTable") is
equal to "string1"
What's wrong with this code ?
with cboViewTable
.DataSource = m_frmFields.Control.Tables(3)
.DisplayMember = "table_name"
.ValueMember = "table_name"
End With
cboViewTable.SelectedValue =
ds.Tables(0).Rows(m_curRow).Item("ViewTable")
Thx