|
|
 |
RE: FN-FORUM: dataset help required
date posted 10th January 2004 13:34
You can't set a datalist or datagrid up as part of a dataset as the first
two are controls! You can set up one or more datatables within a dataset and
you can create relationships between these datatables. You can also bind the
dataset/datatable to the controls
i.e.
dataGrid1.DataSource = customersDataSet1
dataGrid1.DataMember = "Customers"
Mark Anderson
Anderson Consultants
01202 775483
07802 404838 mob
Web Development and database design
[EMAIL REMOVED]
http://www.anderson.uk.com
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of PAMELA
WHITTAKER
Sent: 10 January 2004 11:46
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: dataset help required
Hi,
I am trying to create a datagrid within a dataset. I have tried setting
up a DataSet but I am getting "datalist can not be indexed as it had no
default property" and "datagrid can not be indexed as it had no default
property". What am I doing wrong please.
The code is
Dim ds = New DataSet
ds.Tables.Add(DataList1)
ds.Tables.Add(DataGrid1)
ds.Relations.Add("Items", DataList1("BasketID"), DataGrid1("BasketID"))
Thanks
Pam
|
 |
|