I’m adding data using footer template and I have button to add. So when I try to add
error ‘System.Data.DataRowView‘ does not contain a property with the name ‘
It shows error in this line:
<asp:TemplateField ItemStyle-Width = "30px" HeaderText ="Name">
<FooterTemplate>
<ItemTemplate>
<asp:Label ID="lblMembershipName" runat="server" width ="150px"
Text='<%# Eval"MembershipName")%>'> </asp:Label**>
</ItemTemplate>
</FooterTemplate>
</asp:TemplateField>
You should change:
Text='<%# Eval"MembershipName")%>'toText='<%# Eval("MembershipName")%>'You where missing the opening ( of the Eval function.