Bindind a dataset ???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

How to bind a simple dataset to a Datagrid ???

I am using the following :

Dim ds As New DataSet
Dim dv As New DataView

OleDbDataAdapter1.Fill(ds)
dv.Table = ds.Tables(0)

DataGrid1.DataSource = dv
DataGrid1.DataBind()

I get error saying that it does not implement IEnumerate, so I try the
following :

DataGrid1.DataSource = Ctype(dv,Icollection)
DataGrid1.DataBind()

but same error

thanks for your help
regards
serge
 
Serge,

Could you copy and paste the exact error message text you get so that we can
see the exact problem?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
Back
Top