• 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">
                    <ItemTemplate>
                        <asp:Label ID="lblTitle" Text='<%# Eval("Title") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtTitle" Text='<%# Eval("Title") %>' runat="server"></asp:TextBox>
                    </EditItemTemplate>
 </asp:TemplateField>

I'm using data reader to populate the gridview.
0
NBilly
Asked:
NBilly
  • 2
1 Solution
 
dstanley9Commented:
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?
0
 
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.
0
 
NBillyAuthor Commented:
I got work it working. I was missing a field name.  Thanks.
0

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