When I run the code below which is attempting to bind a FormView control, I am met with an error.
<asp:FormView ID="FormView1" runat="server" DataKeyNames="BsID" OnItemCreated="FormView1_ItemCreated" Font-Size="12pt" OnItemInserted="FormView1_ItemInserted" DataSourceID="ObjectDataSource1" OnItemInserting="FormView1_ItemInserting" OnItemUpdating="FormView1_ItemUpdating" OnItemUpdated="FormView1_ItemUpdated" Width="100%"> <EditItemTemplate> <ig:WebTab ID="WebTab1" runat="server" Width="100%" > <Tabs> <ig:ContentTabItem runat="server" Text="Tab 1"> <Template> <cc1:AdvCtrl ID="AdvCtrl1" runat="server" advFieldType="Text" advModeType="Value" btn_name_width="80px" lb_key_width="10px" tbIndex="0" lb_key_text="*" Value='<%# Eval("BsID") %>' tb_width="350px" advReadOnly="true" />
The error is "DataBinding:' Infragistics.Web.UI.LayoutControls.ContentTabItem' does not contain a property with the name 'BsID'"
Is there a solution for this?
Here's a solution I found;
<asp:FormView ID="FormView1" runat="server" DataSourceID="ods" > <ItemTemplate> <ig:WebTab ID="webtab1" runat="server" > <Tabs> <ig:ContentTabItem runat="server" Text="English"> <Template> <table style="width: 99%;"> <tr> <td class="style1"> <asp:Label ID="Label1" runat="server" Text="item"></asp:Label> </td> <td class="style2"> <asp:TextBox ID="tbItems_Col1" runat="server" CssClass="editArea" Text='<%# DataBinder.Eval(FormView1.DataItem, "Items_Col1") %>' TextMode="MultiLine"></asp:TextBox> </td>