Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 104077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:13:29+00:00 2026-05-11T01:13:29+00:00

I have long tables generated by datagrid control that go beyond the page width.

  • 0

I have long tables generated by datagrid control that go beyond the page width. I would like to convert that into separate table for each row or definition list where each field name is followed by field value.

How would I do that.

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:13:29+00:00Added an answer on May 11, 2026 at 1:13 am

    Uses jquery. If you have more than one table you’ll need to change it to accommodate that. Also, just appends to the end of the document. If you want it elsewhere, find the element you want to place it after and insert it into the DOM at that point.

    $(document).ready(     function() {          var headers = $('tr:first').children();          $('tr:not(:first)').each(            function(i,row) {               var cols = jQuery(row).children();               var dl = jQuery('<dl></dl>');               for (var i=0, len = headers.length; i < len; ++i) {                  var dt = jQuery('<dt>');                  dt.text( jQuery(headers[i]).text() );                   var dd = jQuery('<dd>');                  dd.text( jQuery(cols[i]).text() );                   dl.append(dt).append(dd);              }              $('body').append(dl);           }         );         $('table').remove();     } ); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a long running insert transaction that inserts data into several related tables.
I have a really long 3 column table. I would like to <table> <tr><td>Column1</td><td>Column2</td></tr>
I have a web page that has an HTML table generated by an ASP.NET
I have a website laid out in tables. (a long mortgage form) in each
I have a long list of data that I want to display in table
I have a table with a structure like the following: LocationID AccountNumber long-guid-here 12345
I have a table called Event. A column has duration--which is...how long that event
I have a table that has 8 million records, with many fields, including lat/long
I have a randomly generated link id which is 8 digits long with 50
I have a log table that is inherited by several tables: CREATE TABLE log

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.