Print Page | Close Window

Using multy levels with XtraGrid

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=89
Printed Date: 12-Jun-2026 at 9:59am


Topic: Using multy levels with XtraGrid
Posted By: Yaron
Subject: Using multy levels with XtraGrid
Date 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?



Replies:
Posted By: davidklitzke
Date 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".
 


Posted By: davidklitzke
Date 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.
 
http://www.ideablade.com/forum/uploads/20070620_170631_DevEx_Nested_Gr.zip - uploads/20070620_170631_DevEx_Nested_Gr.zip


Posted By: Yaron
Date 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



Print Page | Close Window