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 8484003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:15:44+00:00 2026-06-10T20:15:44+00:00

We have developed web application using c#.net and java script grids are not displaying

  • 0

We have developed web application using c#.net and java script grids are not displaying in IE 8 and above
Here is the code of javascript for generating table(grid) header
tableid is number of rows and Title is Grid header name

function GenerateTableHeader(TableId,Title)
     {

       if(document.getElementById(TableId).rows.length>0) //0-indicates No rows in table
       {
        return false;
       }
        var tblrow  = document.createElement("TR");
        tblrow.setAttribute("name","row1");
        tblrow.setAttribute("Id","row1");
        var TitleDesc=document.getElementById(Title).value;
        var TitleColumns=TitleDesc.split('|');
        for(i=0;i<TitleColumns.length;i++)
        {
        //Apply Style for table row heading
        var tblCell = document.createElement("<TD class=\"Gridheading\">"); 
        tblCell.innerHTML='<b>' + TitleColumns[i] + '</b>';
        tblCell.setAttribute ("align","center");
        //tblCell.setAttribute ("width","7%");
        tblrow.appendChild(tblCell);
        tblCell = null;
    }
        var tblItemBody=document.getElementById(TableId).getElementsByTagName("tbody")[0]
        tblItemBody.appendChild(tblrow);  
}

In IE 6 and 7 grid is displaying.I need to display the grid in IE 8 and above
please help me ….. Thanks in advance

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-06-10T20:15:46+00:00Added an answer on June 10, 2026 at 8:15 pm

    try this

    function GenerateTableHeader(TableId,Title)
     {
    
       if(document.getElementById(TableId).rows.length>0) //0-indicates No rows in table
       {
        return false;
       }
        var tblrow  = document.getElementById(TableId).insertRow(0);
        tblrow.setAttribute("name","row1");
        tblrow.setAttribute("Id","row1");
    
        var TitleDesc=document.getElementById(Title).value;
        var TitleColumns=TitleDesc.split('|');
        for(i=0;i<TitleColumns.length;i++)
        {
    
        var tblCell = tblrow.insertCell(0);
        tblCell.className='Gridheading';
    
        tblCell.innerHTML='<b>' + TitleColumns[i] + '</b>';
        tblCell.style.align="center";
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.net 3.5 web application developed in VB.net I am using iTextsharp
I have developed an web application using Asp.net ( .Net Framework 3.0). In this
I have developed a Web Application using ASP.Net with Microsoft Access as database. Now
I have developed a web application using Netbeans 6.7 and Ant. The webapp works,
I have developed a Web service using WCF Service Application. This service application is
i have developed a web application asp.net C#. on a button click i am
I have developed a MVC web application with ASP.NET MVC and im just wondering
I have a web application developed in asp.net 3.5. The application is used in
I have to consume a .NET hosted web service from a Java application. Interoperability
I have developed a web application in ASP.NET 3.5 and C#. When I deploy

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.