Vorrei sapere se fosse possibile prelevare dei dati contenuti in una Table, mediante Dataview, filtrarli e scriverli in una Texbox anzichè associarli in un controllo combobox come nell'esempio seguente o quale metodo usare?
'DICHIARA UNA DATAVIEW
Dim DVFornitoriProdotti As DataView
'DICHIARA UN DATAROW PER LA DATAVIEW
Dim DRFornitoriProdotti As DataRow
'ASSOCIA LA DATAROW PER L'USO DEL FILTRO
DRFornitoriProdotti = CType(ListBox1.SelectedItem, DataRowView).Row
'ASSOCIA LA DATAVIEW ALLA TABELLA DA FILTRARE
DVFornitoriProdotti.Table = TBprodotti
'FILTRA LA DATAVIEW
DVFornitoriProdotti.RowFilter = "fornitoreprodotto = '" & DRFornitoriProdotti(0) & "'"
ASSOCIA IL CONTROLLO COMBOBOX ALLA DATAVIEW FILTRATA
ComboBox4.DataSource = DVFornitoriProdotti
ComboBox4.DisplayMember = "costolordo"
ComboBox4.ValueMember = "idprodotto"