473,788 Members | 2,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Nested DataGrids

I have a datagrid with another datagrid in a template
column. For the second datagrids datasource I use
container.datai tem.createchild view("relations hip") I want
to discover if the nested datagrid has any rows. I think
I need to check the datagrid.items. count on the second
datagrid in the first datagrids ItemCreated event but I
can't seem to figure out how to address the second
datagrid. Does anyone have any ideas?
Nov 17 '05 #1
1 2674
Use the "FindContro l" method to get the second datagrid object.

Justin

"Dave" <da********@hot mail.com> wrote in message
news:02******** *************** *****@phx.gbl.. .
I have a datagrid with another datagrid in a template
column. For the second datagrids datasource I use
container.datai tem.createchild view("relations hip") I want
to discover if the nested datagrid has any rows. I think
I need to check the datagrid.items. count on the second
datagrid in the first datagrids ItemCreated event but I
can't seem to figure out how to address the second
datagrid. Does anyone have any ideas?

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1451
by: Yasir Hussain | last post by:
Hope someone can shed some light on the follow issue. With regards to the excellent article by Dino Esposito on Nested DataGrids, http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/default.aspx , I tried to take that example and build on it and take it a little further. For those you havnt read the article yet, a summary: Outer Datagrid with a custom column that expands/Coppalses a DataRow
0
1412
by: Eddie B. | last post by:
Is it possible to do nested datagrids for Windows Forms?
2
945
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child datagrid. HTML Datagrid1 TemplateColumn Table Header information Detail Information
0
1801
by: Bob Hoke | last post by:
I am trying to do some of the things we used to do in classic ASP that required some pretty ugly loops in the .ASP page. I have two different DataSets that each have a DataView that I can change based on parameters passed in. In my .ASPX page I have created a loop (using <% ..%> blocks) that contains two different DataGrids. The loop changes parameters for the Dataviews according to the loops counter and then displays the two different...
1
690
by: Dave | last post by:
If you drop a datagrid into an itemtemplate column of a datagrid using VS.net, it doesn't get declared in the designer code with Protected WithEvents NestedGrid As System.Web.UI.WebControls.DataGrid I presume that is why you can't pick up the ItemCommand event of the NestedGrid if it has an ImageButton in it. That being the case, does anyone know what you must do to
3
1748
by: John Jasobs | last post by:
I know this has been asked before but I have not seen it answered. How would one implement nested datagrids in windows forms based on the table relationships within a dataset? Or, is there some setting that lets you automatically display the details table (instead of the relationship name) on the new expanded row of a datagrid? I have seen it for ASP.NET, but is this doable for windows forms? Thanks in advance,
1
1166
by: Neil | last post by:
Does anyone know where there is some examples of nested datagrids in vb.net not using ASP.net or Does anyone know how to link using nested datagrids in vb.net not using ASP.net (eg where column 1 is a date and the column 2 is a datagrid that has transactions belonging to that date)
0
1078
by: edgarecayce | last post by:
I would like to implement a drill-down report using the ASP.NET datagrid. From what I have read online, a way to do this is to have a user control that implements the second-level data when you drill down from the first level. This user control would be passed some info about what row it is representing and would implement a second datagrid that would be nested in the first one. The outer grid's EditItemTemplate would contain the user...
6
1758
by: Steve Hershoff | last post by:
Hi everyone, I've got a strange one here. There are two datagrids on my page, one nested within the other. I'll refer to them as the topmost and secondary datagrids. In the topmost datagrid's OnItemDataBound() method we check for the row in which it's appropriate to add the secondary datagrid. Exactly one row in the topmost grid will contain the secondary grid.
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.