I have a dropdown control that returns all the States. When the state is selected I would like to show the results in a gridview control or datagrid. Not sure which one would be the best.
When I tried to use the gridview control it took my value of GA and put it on two rows. I have attached a screenshot of this. I think i am missing something simple here but not very fimiliar with VB.net and have been learning as I code for this huge project I am so behind on.
Any ideas? thanks in advance!
Dim state As String = ddlStates.SelectedItem.Value
lblCityError.Text = ""
Dim ds As New DataSet()
Dim dt As New DataTable()
dt.Columns.Add(New System.Data.DataColumn("State", GetType([String])))
gvState.DataSource = ddlStates.SelectedItem.Value