Data not showing in Gridview column.

Posted on 2006-05-24
Last Modified: 2008-03-03
Data is not showing in a new Gridview column I created on ASPNET page.  I have four columns and the other three column show data but not the 4th column.

here's the code for the new column.

<asp:TemplateField HeaderText="Title">
                        <asp:Label ID="lblTitle" Text='<%# Eval("Title") %>' runat="server"></asp:Label>
                        <asp:TextBox ID="txtTitle" Text='<%# Eval("Title") %>' runat="server"></asp:TextBox>

I'm using data reader to populate the gridview.
Question by:NBilly
    LVL 25

    Accepted Solution

    Are you seeing a column at all or just a column with empty cells?  Does the field "Title" have any data?  CAn you look at other template columns to see if there are any striking differences?

    Author Comment

    Just a column with empty cells.  Yes, the field has data.  I looked at the other columm template they look similar. In fact, I copied and paste from one of the other columns.

    Author Comment

    I got work it working. I was missing a field name.  Thanks.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    729 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

    18 Experts available now in Live!

    Get 1:1 Help Now