Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Multiple Items in Grid View Help!!!
Previous Previous
 
Next Next
New Post 5/12/2008 9:05 AM
User is offline lubatico
18 posts
10th Ranked


Multiple Items in Grid View Help!!! 

Greetings,

I am experiencing the following problem:

I'm trying to publish a grid view containing  a directory of staff.
The Datasource for thie grid view returns the staff member's name and id.
The problem arises when I  try to list all the phone numbers and emails per person.


I cannot do that via the previous data source, as it would return several repetitions of the same person. So, I used the Item Template feature of the grid view and put another gridview inside it,  with a data source that brings all the tel. #'s and email addresses for a certain staff id.

My question is the following: how can I point the variable to the required staff id (which is returned in the original query)?
When I set the data source to select the variable, all I can point it to is the gridview that returned the first query (with the staff member and id).

Any ideas?

Once again, many thanks in advance for all your help

 

L

 

 
New Post 5/12/2008 1:03 PM
User is offline Carlos Rodriguez
490 posts
www.almacigo.com
8th Ranked


Re: Multiple Items in Grid View Help!!! 

See this article: http://www.codeproject.com/KB/webforms/GridViewInsideGridView.aspx

Carlos

 

 
New Post 5/13/2008 11:56 AM
User is offline lubatico
18 posts
10th Ranked


Re: Multiple Items in Grid View Help!!! 

Many thanks, Carlos.

It hits the spot ;)

 
New Post 5/14/2008 10:09 AM
User is offline Carlos Rodriguez
490 posts
www.almacigo.com
8th Ranked


Re: Multiple Items in Grid View Help!!! 

Lubatico:

Also check this site: http://www.webswapp.com/codesamples/aspnet20/nestedgridviews/default.aspx.  It is even a better example with a live demo and source code in VB.  Click on the little arrow on the left to see it in action.

On the same site, this guy has a bunch of examples of embedding complex controls inside of other containers (formview, Gridview, Detailsview, Datalist) and how to use their events, data binding, etc.  Excellent work.  See it here: http://www.webswapp.com/codesamples/aspnet20/dependentlists/gridview.aspx and don't forget that all the examples are live, click Edit on the gridview for instance.  And don't forget to see the other tabs at the bottom and the subjects on the left.

I have to say it again, excellent work!!!  I learned a lot from those examples.

And notice that the examples are not exactly DNN but all techniques presented work without problems in DNN modules as far as I have been able to apply and test.

Carlos

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Multiple Items in Grid View Help!!!
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke Hosting
Powerful DotNetNuke Hosting starting at under $8/mo with FREE SQL 2005, FREE Installation and expert support.
www.re-invent.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP