Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 23rd, 2006, 06:33 AM
Registered User
 
Join Date: Feb 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Drill down datagrid in C#.net

Hi

I am working on Datagrid in C#.net. I have to create hierarchical/drilldown datagrid such that the datagrid is nested at three levels. I have instantiated one datagrid. Using TemplateColumn,i am adding another datagrid. When + button is clicked this nested datagrid shows the details of that ID. Now i have to go one level down and show records for the item clicked in the second grid. However i cant get which event to use to write code in

Urgent help needed for it

 
Old February 25th, 2006, 11:23 AM
Authorized User
 
Join Date: Feb 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MAKO
Default

My friend, all you need to do is to create the datarelations between
the tables you need in the dataset and then bind a Datagrid to that dataset and done.


:-Q Marvin B-)
 
Old February 27th, 2006, 01:37 AM
Registered User
 
Join Date: Feb 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi marvin,
I could have used data relations in that but with relations i dont get the expandable and collapsable thing. I want the data to be displayed only for the region the user wish to c and not all at one go. Moreover when i tried using datarelations, i am getting the following error. can u help me out in tht:

"The relation is not parented to the table to which this DataView points"

I checked my query. the parent table has records for order and child table for order details

Thankx

 
Old April 14th, 2006, 04:30 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI VIDHU,
I AM GETTING SAME PROBLEM?

have you found any solution???


zia

 
Old May 1st, 2006, 04:50 PM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Vidhu,

Can you send me the code that you used to create drill down datagrid that is nested at three levels, I need only 2 levels and I am having a difficult time figuring this out.

Thanks,

Renu

 
Old May 4th, 2006, 09:56 AM
Authorized User
 
Join Date: Feb 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to MAKO
Default

Guys, you can use a dataset designer (includen in VS) and create the xml squema for your dataset's tables, in there, you can define datarelations between the tables which will therefore make your datagrid show the expandable + signs when you bind that dataset to it.



MAKO - "El super simio"
 
Old May 21st, 2006, 11:12 PM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rajanvash
Default

Hi,

Being a new developer to .NET technologies, i request Marvin to post the code for this drill down data grid solution.

Thanks and Regards,
Rajan Vashisht
 
Old May 23rd, 2006, 02:19 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I need this code too. I need hierarchy in datagrid badly. Plz post it.

 
Old May 23rd, 2006, 02:44 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey i need this code too. I didnt even reach to place when this error is shown. How u make it guys ?

 
Old May 24th, 2006, 06:07 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have already used buttons (+) one , so use ItemCommand event to write your code.

Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Where does the drill down goes? dash dev Crystal Reports 0 March 15th, 2008 12:50 AM
Drill-Through baaul BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 September 23rd, 2007 08:08 PM
Drill down issues aldwinenriquez Reporting Services 3 March 3rd, 2006 02:36 AM
Drill down hosefo81 PHP How-To 2 November 28th, 2003 09:46 PM
how to drill down hosefo81 PHP How-To 0 November 21st, 2003 01:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.