Modifying a DataSet TableAdapter RRS feed

  • Question

  • I am adding a field to a FormView where the data is generated by a ObjectDataSource.

    I updated the ItemTemplate <asp:Label ID="lblIsActive" runat="server" Text='<%# Eval("IsActive") %>'></asp:Label>.

    Using the tableadapter wizard, I updated the Dataset GetData tableadapter to include the new field. SELECT participantsid, first_name, middle_name, last_name, IsActive FROM participants

    The auto-generated Dataset.Designer.cs file contains the IsActive property, but the Dataset.cs file doesn't.

    When I view the page, I get a error:

    DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'IsActive'.

    Any ideas on how  to regenerate the Dataset.cs file? Thanks.

    • Moved by Jason Dot Wang Friday, August 2, 2013 7:56 AM This thread is about ASP.NET
    Thursday, August 1, 2013 7:58 PM

All replies