<asp:GridView ID="OtherOptionsGridView" AutoGenerateColumns="false" runat="server"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox runat="server" ID="RowLevelCheckBox" /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="Name" HeaderText="Name"/> <asp:BoundField DataField="msrp" HeaderText="MSRP" DataFormatString="{0:C0}" HtmlEncode="false" /> <asp:TemplateColumn HeaderText="Model Option"> <ItemTemplate> <asp:CheckBox id="Checkbox1" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.modeloptionid") %>'></asp:CheckBox> </ItemTemplate> </asp:TemplateColumn> </Columns> </asp:GridView>>I’m trying to grab the data in the modeloptionid of this gridview:
><asp:GridView ID="OtherOptionsGridView" AutoGenerateColumns="false" runat="server"> > <Columns> > <asp:TemplateField> > <ItemTemplate> > <asp:CheckBox runat="server" ID="RowLevelCheckBox" /> > </ItemTemplate> > </asp:TemplateField> > <asp:BoundField DataField="Name" HeaderText="Name"/> > <asp:BoundField DataField="msrp" HeaderText="MSRP" DataFormatString="{0:C0}" HtmlEncode="false" /> > <asp:BoundField DataField="modeloptionid" Visible="false" /> > </Columns> > </asp:GridView> >>