Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 23rd, 2006, 05:33 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
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

Reply With Quote
  #2 (permalink)  
Old February 25th, 2006, 10:23 AM
Authorized User
 
Join Date: Feb 2006
Location: Bluefields, , .
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-)
Reply With Quote
  #3 (permalink)  
Old February 27th, 2006, 12:37 AM
Registered User
 
Join Date: Feb 2006
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old April 14th, 2006, 04:30 AM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

HI VIDHU,
I AM GETTING SAME PROBLEM?

have you found any solution???


zia

Reply With Quote
  #5 (permalink)  
Old May 1st, 2006, 04:50 PM
Registered User
 
Join Date: May 2006
Location: , , .
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

Reply With Quote
  #6 (permalink)  
Old May 4th, 2006, 09:56 AM
Authorized User
 
Join Date: Feb 2006
Location: Bluefields, , .
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"
Reply With Quote
  #7 (permalink)  
Old May 21st, 2006, 11:12 PM
Registered User
 
Join Date: May 2006
Location: Bangalore, Karnataka, India.
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
Reply With Quote
  #8 (permalink)  
Old May 23rd, 2006, 02:19 AM
Registered User
 
Join Date: May 2006
Location: , , .
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.

Reply With Quote
  #9 (permalink)  
Old May 23rd, 2006, 02:44 AM
Registered User
 
Join Date: May 2006
Location: , , .
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 ?

Reply With Quote
  #10 (permalink)  
Old May 24th, 2006, 06:07 AM
Friend of Wrox
 
Join Date: May 2006
Location: Delhi, Delhi, India.
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
Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01:36 AM
Drill down hosefo81 PHP How-To 2 November 28th, 2003 08:46 PM
how to drill down hosefo81 PHP How-To 0 November 21st, 2003 12:14 AM



All times are GMT -4. The time now is 06:39 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.