(another) datarelation datagrid question
- From: "gabe" <gabe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Apr 2005 07:54:01 -0700
i have an ad hoc query builder (long story)
to faciliate ad hoc heterogenious queries (all kinds of databases - linked
servers arent an option)
and i would like the end data displayed in a datagrid without the '+'
in a manner described best by "How to Display Child Table Rows as a Column
in a DataGrid"
http://dotnetjunkies.com/Article/2E3CF274-D5F6-4F43-97C7-805E1A887280.dcik
if i set this up in design time i can add the tables and fields for 2
tables, add the datarelations, create a new datatable, add some columns to it
that i would like bound to the final grid. i loop thru the parent table and
inside that loop i loop thru the child table and add the data from the
appropriate fields to the new dataTable. then i bind to the grid. the grid
look exactly as i want and as a bonus it filters parent records without
matching child fields, all is well.
the next part is making my ears bleed, just a little bit.
i would like to be able to (in run time) programatically walk thru the
tables in the dataset and do the same thing but for as many tables and fields
as are present in the dataset.
any help (or even lighthearted mockery) is appreciated.
in over his head,
gabe
.
- Follow-Ups:
- Re: (another) datarelation datagrid question
- From: Alan Baljeu
- Re: (another) datarelation datagrid question
- Prev by Date: Re: repost: Registering Provider
- Next by Date: Re: Extract Unique Values from Database
- Previous by thread: Re: MySQL & ByteFX (Invalid PInvoke metadata format)
- Next by thread: Re: (another) datarelation datagrid question
- Index(es):
Relevant Pages
|
Loading