Bindind a dataset ???

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
 
S

S. Justin Gengo

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
 
G

Guest

I dod not get the error anymore, maybe my oledbAdapter was badly created

thnaks anyway
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top