New Posts New Posts RSS Feed: Multiple Objects in a DGView?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Multiple Objects in a DGView?

 Post Reply Post Reply
Author
jsmark View Drop Down
Newbie
Newbie
Avatar

Joined: 22-Jun-2007
Location: Canada
Posts: 3
Post Options Post Options   Quote jsmark Quote  Post ReplyReply Direct Link To This Post Topic: Multiple Objects in a DGView?
    Posted: 22-Jun-2007 at 12:05pm
Hi,

I'm wondering if it is possible to bind two objects to a Data Grid View? For an explanation of what I am trying to achieve:

I have a Customer Transactions object which stores information such as Customer ID, Goods amount etc. I also have a related object, CustomerTransactionsTaxLink, which corresponds to a specific TaxID and then the transaction ID and the amount for the specific tax, to allow for multiple taxes.  Now the problem I am running into is I have a datagrid with all the transaction info but I am not sure how to dynamically add columns for each tax. I could use a separate grid view for the tax that changes whenever the transaction is changed but for ease of entry it is best contained in one. Is there an easy way of doing something similar to this with DevForce or would I have to do everything through code?

Thanks,

Mark
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 22-Jun-2007 at 3:09pm
Hi Mark,
 
No, you cannot directly bind two different objects to a DGV; however, the one-to-many-relationship could be expressed in a grid-in-grid setup.  Have you tried that arrangement?  You mentioned a separate grid, but did you embedded it in the tax column of the first one?
 
Bill
Back to Top
jsmark View Drop Down
Newbie
Newbie
Avatar

Joined: 22-Jun-2007
Location: Canada
Posts: 3
Post Options Post Options   Quote jsmark Quote  Post ReplyReply Direct Link To This Post Posted: 22-Jun-2007 at 3:28pm
I haven't tried that yet. I haven't ever done a grid-in-grid setup, i'll play around and see how that goes.

Thanks,

Mark
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down