Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Binding a grid to various sources.

Thread Tools

Binding a grid to various sources.

Posts: n/a
I am not even sure how to explain what I need to do. I have 3 tables, and I
need to display and edit data from various fields from two of them:

ID, fld1, fld2, Table2ID --one record

ID, fld3, fld4 --one record

ID, fld5, Table2ID -- One or 2 records for each Table2ID.

I want to display in the grid like this:
Col1 would bind to fld1,
Col2 would bind to fld2
Col3 would bind to fld5 (from the first record of table 3
Col4 would bind to fld5 (from the second record of table 3)...

Do you see my dilemma? If I create one query that joins all the data, bind
it to the grid, I get 2 records, rather than one record with 2 columns. Is
there anyway I can do that? I can't create 2 queries, because I can't bind
the grid to 2 different datasets. Or can I? This is an editable grid,
also, which makes it even more difficult to add, edit and delete these

Thanks for your help.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a container to hold grid positions and the objects on the grid? Simon L C++ 3 03-31-2006 03:38 PM
Grouped grid? Or grid within datalist? Danny Tuppeny ASP .Net 1 10-27-2005 10:03 PM
How to transfer a value from an Invisible Grid to an visible Grid =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?= ASP .Net 2 10-17-2005 03:56 AM
Grid within a Grid ItemDataBound event problem Girish ASP .Net 4 07-19-2005 01:17 AM
Grid question: How do I force grid elements to expand and use available space Marc Python 0 10-08-2003 05:06 PM