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

  • Home
  • SEARCH
  • 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 web page that has an HTML table generated by an ASP.NET
I have a long list of data that I want to display in table
I have table of 5000+ rows and 8+ columns like, Station Lat Long Date
I have a table called Event. A column has duration--which is...how long that event
I have long-lasting TCP connection between two computers (second not under my control). Second
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
I have a couple of queries for a web site that take a long
I have two long list, one from a log file that contains lines formatted
I have a problem... I have some long hyperlinks that are plain text that

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.