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  |  

$4.95 Windows Hosting at Webhost4life.com
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  How to add two gridviews in one column of a row
Previous Previous
 
Next Next
New Post 5/10/2008 12:16 AM
User is offline Vishu
1 posts
10th Ranked


How to add two gridviews in one column of a row 

Hi I am trying to display two gridviews in a row using datalist.  This is how my code looks

<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" DataKeyField= "GroupID" RepeatColumns="2" OnItemDataBound="DataList1_ItemDataBound">
              
               <ItemTemplate>
                                    
                    <asp:Label ID="lblPanel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DisplayName") %>'></asp:Label>                   
                                     
                   <asp:GridView ID="GridView1"   runat="server"  AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" GridLines="Horizontal">
                      
                   </asp:GridView>                                      
                                 
                </ItemTemplate>
        </asp:DataList>

View source looks like this

<table>

<tr><td> first gridview</td>

<td> second gridview</td>

</tr>

<tr><td>first gridview</td>

<td>second gridview</td></tr>

</table>

But I am trying to get somethis like this

<table><tr><td>first gridview secondGrid view</td></tr>

<tr><td>first gridview secondgridview</td></tr><table>

How can i do this. What controls I need to use? Can someone shed some light?

 

Thank you

Vishal

 
New Post 5/12/2008 7:10 AM
User is offline Mitch Sellers
5053 posts
www.mitchelsellers.com
3rd Ranked




Re: How to add two gridviews in one column of a row 

I only see 1 grid view in your example, is it 1 gridview per record, or 2?


-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 5/12/2008 1:15 PM
User is offline Carlos Rodriguez
490 posts
www.almacigo.com
8th Ranked


Re: How to add two gridviews in one column of a row 

Vishal:

Check out the running demos on this site:  http://www.webswapp.com/codesamples/aspnet20/dependentlists/datalist.aspx

I found them just a few days ago while researching something similar.

Carlos

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  How to add two gridviews in one column of a row
 


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.

 


SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com

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