New Posts New Posts RSS Feed: Using multy levels with XtraGrid
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Using multy levels with XtraGrid

 Post Reply Post Reply
Author
Yaron View Drop Down
Newbie
Newbie


Joined: 19-Jun-2007
Posts: 16
Post Options Post Options   Quote Yaron Quote  Post ReplyReply Direct Link To This Post Topic: Using multy levels with XtraGrid
    Posted: 19-Jun-2007 at 5:40am
Hellow everybody. I am attempting to use multy levels with DeExpress Grid. I got a XTRAGridBinding Manager for each level and a BindingSource for each GridView. when attempting to use in-Grid adding of objects to the GridView which is set as the MainView. to my surprise, it is the BindingSource of the next level which is firing the OnAddingNew event.
Any ideas how to get it right?
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 20-Jun-2007 at 2:04pm
Yaron,
 
I am not sure what you want.  You can certainly create DevEx XtraGrids one above each as is done in many of DevForce tutorials with the .NET DataGridView, but perhaps what you want is one XtraGrid inside of another XtraGrid as is shown below.  This is what many people refer to as a "Nested Grid".
 
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 20-Jun-2007 at 2:06pm

Yaron,

If you want a code sample of a "Nested Grid", I've uploaded a sample for you.
 
Back to Top
Yaron View Drop Down
Newbie
Newbie


Joined: 19-Jun-2007
Posts: 16
Post Options Post Options   Quote Yaron Quote  Post ReplyReply Direct Link To This Post Posted: 21-Jun-2007 at 7:33am
Nested grid it is, that what I had in mind, just what I need is inGrid adding of objects, I normally handle it well as per the tutotials supplied. this time the requirement is for adding new objets in both levels of the grid. but I just looked at your sample and added the OnAddingNew event handlers. it works great, so the problem must be somewhere in my code. Thanks very much

Edited by Yaron - 21-Jun-2007 at 7:36am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down