473,385 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Bindind a dataset ???

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

Nov 19 '05 #1
2 1006
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
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:22**********************************@microsof t.com...
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

Nov 19 '05 #2
I dod not get the error anymore, maybe my oledbAdapter was badly created

thnaks anyway

"S. Justin Gengo" wrote:
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
"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:22**********************************@microsof t.com...
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


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
2
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
1
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.