hi kath
my dataset contains 2 tables, customers and orders. one of the columns in
EACH table is called customerid which is a primary key in one table, and a
foreign key in the other table.
i create a dataset relation between these 2 fields, then set the
dataset.nested property to true to create a hierarchy.
my problem arises when i try to read the values from the dataset in order to
populate a datagrid. i can read the top level table by simply assigning the
name of the column to the datafield property of the datagrid.
but this doesn't work for the child table. i thought this would be a common
problem but i cant find the answer on the net. !!
"Kathleen Dollard" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Suzy,
>
> Unless someone else answers this, repost with a bit more information.
> Specifically, what your DataSet looks like in terms of its tables and
> relations.
>
> The short answer is to set the tables and relations and bind to the
DataSet,
> letting the datagrid take care of the rest (assuming Windows.Forms)
>
> --
> Kathleen (MVP-VB)
>
>
>
> "suzy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > im building a datagrid control at runtime using a dataset as the
> datasource
> > and everything was working fine.
> >
> > i then needed to change my dataset to be nested data and now i don't
know
> > how to set the DataField property of child values in the dataset.
> >
> > can anyone help me please?!
> >
> > thanks.
> >
> >
>
>
|