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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Indoo
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


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
5026 posts
www.cathal.co.uk
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
489 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.

 


Disgrafic
Diseño y creación de portales web dinámicos :: Desarrollo de módulos personalizados :: Soluciones a medida :: Imagen Corporativa :: Tu proveedor DNN en España
www.disgrafic.com
DM Analytics, LLC
DM Analytics, LLC provides software solutions that facilitate rapid development of independent or dependent datamarts and their associated web-based reporting.
www.dmanalytics.com
Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com

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