DataGrid not Visiible in Browser

Posted on 2007-08-08
Last Modified: 2010-04-15
I have got a weird problem with the DataGrid on webForm. When the project is opened in IE  Grid is not to be seen.  In design view I can see the datagrid and in code behind also its events but when opened in browser I dont find it . I had been to Viewsource too but no datagrid. Other controls are fine.

What would be the probelm
Question by:dotnet0824
    LVL 8

    Expert Comment

    Can you send the code part.
    LVL 21

    Accepted Solution

    see if you have correct page set as a start up page and also see if your datagrid is getting data-bound. If it's not data-bound - it will not be visible. If it's all done by the framework (in data source), make sure that your query returns any results from the database - it won't be shown if there are no results. If you do some databinding, place a breakpoint where you have it done and see whether it's getting bound.

    Good luck,
    LVL 96

    Expert Comment

    by:Bob Learned
    That is usually because the data source is blank, or you didn't call DataGrid.DataBind() after setting the DataSource property.


    Author Comment

    Thanks for that
    LVL 21

    Expert Comment

    my pleasure :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Read about why website design really matters in today's demanding market.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now