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 .
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
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.
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
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.
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.