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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:58:24+00:00 2026-06-03T00:58:24+00:00

In web application [asp.net gridview], i want to display the gridvew without binding data,

  • 0

In web application [asp.net gridview], i want to display the gridvew without binding data, i mean i have footer template there i kept textboxes and button when user enter and click add then the data will bind to gridview, for the first time [when no data is there] only footer should display. can you help me, thank you. is there any reference to refer.

  • 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-03T00:58:26+00:00Added an answer on June 3, 2026 at 12:58 am

    create one table with same fields [to bind gridivew] and bind the data to gridview

                 DataTable dt = new DataTable();
    
                DataColumn dc = new DataColumn("WeekNo", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("Division", typeof(string));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("Activity_Desc", typeof(string));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("Projects", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("MonDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("TuesDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("WednesDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("ThursDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("FriDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("SaturDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("SunDay", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("Hid", typeof(Int32));
                dt.Columns.Add(dc);
                dc = new DataColumn("SubmitStatus", typeof(Int32));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("TotalWeek", typeof(string));
                dt.Columns.Add(dc);
    
                dc = new DataColumn("Did", typeof(string));
                dt.Columns.Add(dc);
    
                //dc = new DataColumn("Curstatus", typeof(string));
                //dt.Columns.Add(dc);
                dc = new DataColumn("ActivityID", typeof(string));
                dt.Columns.Add(dc);
                dc = new DataColumn("ProjectId", typeof(string));
                dt.Columns.Add(dc);
    
    
    
                DataRow dr = dt.NewRow();
                dr[0] = 0; dr[1] = 0; dr[2] = 0; dr[3] = 0; dr[4] = 0; dr[5] = 0; dr[6] = 0; dr[7] = 0; dr[8] = 0; dr[9] = 0; dr[10] = 0; dr[11] = 0; dr[12] = 0; dr[13] = 0;
                dr[14] = 0; dr[15] = 0; dr[16] = 0; //dr[17]=0;
                dt.Rows.Add(dr);
                GridView.DataSource = dt;
                GridView.DataBind();
                GridView.Rows[0].Visible = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a GridView and want to on an ASP.NET Web Application page and
i have gridview in my asp.net web application under framework 3.5. I am binding
I have an ASP.NET Web Forms application. In my GridView OverviewGridView there is a
I have an ASP.NET Web Forms application. In my application I have a GridView
We have a Web application (ASP.NET) which displays in some page links to miscellaneous
I have a Web Application (ASP.NET C# for .NET 3.5) that uses the Session
i have developed a web application asp.net C#. on a button click i am
I have a web application on ASP.NET (C#) that has some precompiled components. I've
I have a web application in Asp.Net. I've created my master page and inside
I have a small web application with ASP.NET AJAX running well under the Cassini

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.