• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 566
  • Last Modified:

Data not showing in Gridview column.

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.
  • 2
1 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?
NBillyAuthor Commented:
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.
NBillyAuthor Commented:
I got work it working. I was missing a field name.  Thanks.

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now