Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I just have simple grid view which i dragged and dropped on the design page. I tried running it but it is not displaying it

Steps I took to resolve:
I tired binding the data-Still no luck
I thought i could be some issue with my VS2010-Tried Repairing it still no luck
Tried opening Chrome Browser--Displays empty page as it did in IE
I am not sure what is the problem can anyone help me on this
I tried changing the couple of properties on gridview ,AllowPaging,AutogenerateDelete/edit--still not working

DesignPage
ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GridView._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="gvEmpdata" runat="server">
        </asp:GridView>
    </div>
    </form>
</body>
</html>


Code-Behind Page
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GridView
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
Posted
Comments
Krunal Rohit 24-Oct-15 2:38am    
Show us how you bind the data to the gridview.

-KR

1 solution

try to add the gridview dynamically from .cs file

or
check the .net framework component and reset
step-1 rtclick on toolbox item and select choose items
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900