Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Creation - Gridview questionModule Creation - Gridview question
Previous
 
Next
New Post
3/14/2006 12:43 AM
 

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 6:35 AM
 

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 7:42 AM
 

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 9:08 AM
 

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 9:25 AM
 

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
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module Creation - Gridview questionModule Creation - Gridview question


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out