A
André Almeida Maldonado
Why when I execute this code, my DropDownList is populated with the value
"System.Data.DataRowView"????
See the code:
cmdCommand.CommandText = "SELECT UsuaNome FROM usuarios"
dapAdapter.SelectCommand = cmdCommand 'dapAdapter is a DataAdapter
dapAdapter.Fill(dtsDataSet, "Usuarios")
drpLigaAten.DataSource = dttUsuarios 'dttUsuarios is a DataTable
drpLigaAten.DataBind() 'drpLigaAten is a DropDownList
Thank's
"System.Data.DataRowView"????
See the code:
cmdCommand.CommandText = "SELECT UsuaNome FROM usuarios"
dapAdapter.SelectCommand = cmdCommand 'dapAdapter is a DataAdapter
dapAdapter.Fill(dtsDataSet, "Usuarios")
drpLigaAten.DataSource = dttUsuarios 'dttUsuarios is a DataTable
drpLigaAten.DataBind() 'drpLigaAten is a DropDownList
Thank's