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  |  

  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Module Creation - Gridview question
Previous Previous
 
Next Next
New Post 3/13/2006 10:43 PM
User is offline campbell Fulller
24 posts
10th Ranked


Module Creation - Gridview question 
Modified By Michael Washington  on 4/11/2006 3:42:32 PM)

I successfully followed the Module Creation document http://www.adefwebserver.com/DotNetNukeHELP/DNN_Module4/

After much playing around I managed to get a very basic module going (though DNN arbitrarily throws security exceptions now and then) Anyway I was wondering whether or not anyone knows whether or not its possible to have multi-line rows in a Grid view?

So instead of using a single row to display 1 Table row I would like to split the row into 2 with multiple columns.

tia

Campbell

 
New Post 4/11/2006 4:35 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Module Creation - Gridview question 

can you meet your goal with TemplateColumn?

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post 4/11/2006 5:42 AM
User is offline Peter Chan
25 posts
10th Ranked


Re: Module Creation - Gridview question 

You mean that your table has many columns and you want to see all the columns on two or more rows for the same record ?

That's what's I'm looking for during years! Lately, I've been looking into the Gridview component, but no news on forums and tutorials about such a function in GridView (nor any Grid), sorry!.

 
New Post 4/11/2006 7:08 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Module Creation - Gridview question 

well actually, GridView or DataGrid (in the former version) isn't meant for that!

As far I as know it is for tabular display only (so one row at the time).

Why don't you use DataList or Repeater? they are completly flexible?

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post 4/13/2006 7:25 AM
User is offline Peter Chan
25 posts
10th Ranked


Re: Module Creation - Gridview question 

I've fiddled further and found that GridView does allow much more formating than I thought. Within a cell , you can format a complete subtable (multiple rows/columns). Try this in GuestBook: replace the <Columns> part of EditGuestbook.Ascx with:

    <Columns>
        <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" ButtonType = "Image" 
EditImageUrl = "EditChange.gif" CancelImageUrl="EditCancel.gif" DeleteImageUrl="EditDelete.gif" UpdateImageUrl="EditOk.gif" EditText="Modifier" CancelText="Annuler" DeleteText = "Supprimer"
UpdateText ="Valider" />    
        <asp:BoundField DataField="ID" HeaderText="ID" Visible="False"  />
        <asp:BoundField DataField="ModuleID" HeaderText="ModuleID" Visible="False" />
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        <asp:BoundField DataField="Message" HeaderText="Message" SortExpression="Message" />
        <asp:BoundField DataField="Email" HeaderText="Email" />

        <asp:BoundField ApplyformatInEditMode="True" DataField="DateEntered" DataformatString="{0:d}"
            HeaderText="Date" HtmlEncode="False" SortExpression="DateEntered" />
        <asp:TemplateField>
          <ItemTemplate>
          <table>
          <tr><td><asp:Label ID="lblMessage0" Text='<%# Bind("Name") %>' runat="server"></asp:Label></td>
              <td><asp:Label ID="lblMessage1" Text='<%# Bind("Message") %>' runat="server"></asp:Label></td></tr>
          <tr><td><asp:Label ID="Label1" Text='<%# Bind("ModuleID") %>' runat="server"></asp:Label></td>
              <td><asp:Label ID="Label2" Text='<%# Bind("Email") %>' runat="server"></asp:Label></td></tr>
          </table>           
          </ItemTemplate>
        </asp:TemplateField>
    </Columns>

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Module Creation - Gridview question
 


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.

 


PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com
DotNetNuke Marketplace - Modules & Skins
The DotNetNuke Marketplace is the official e-commerce gateway for the DNN ecosystem. It's the place to buy and sell DotNetNuke modules, DotNetNuke skins, and other DNN offerings.
DotNetNuke Marketplace

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