Sahil
Thu Oct 27 22:56:43 CDT 2005
>> Do I define this DataRelation after I fill my DataSet?
Not necessary - though your fill will happen faster without any
DataRelations present.
> Do I have to define each
> column and specify rows in the DataSet in order to be able to
> eventually use a DataRelation?
Only Columns.
> I've been filling one single DataSet based on different commands, which
> are in turn based on different queries and connections.
DataRelation dr = new DataRelation(..)
DataSet.relations.add(dr) <-- really it's that easy.
> ... I guess defining a database within my DataSet in order to use
> the DataRelation?
DataSet != Database !! :), so that don't make sense.
--
- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
----------------------------------------------------------------------------
"Christine Y." <ceyusi13@gmail.com> wrote in message
news:1130350106.669762.231660@g43g2000cwa.googlegroups.com...
> Thanks for the reply. Do I define this DataRelation after I fill my
> DataSet? After reading the online info, I'm still confused on using
> DataTables, DataColumns, DataRows, etc. Do I have to define each
> column and specify rows in the DataSet in order to be able to
> eventually use a DataRelation?
>
> I've been filling one single DataSet based on different commands, which
> are in turn based on different queries and connections. How do I go
> about... I guess defining a database within my DataSet in order to use
> the DataRelation?
>
> Thanks again,
> Christine
>