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  |  

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


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


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.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

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