G
Guest
To all,
I'm trying to bind a dataset to a listbox control that is in a gridview's
templated field. However, in the code behind the intellisense does not
recognize the ID name of my listbox control....thus not giving me an
opportunity to bind the listbox's datasource to a dataview. Can you make any
recommendations?
I'm trying to put a list box within a gridview so that an end user may
select a record from the listbox and relate the selected value to the
row/record within the gridview.
Here is my HTML code:
<aspanel ID="pnlADComputerView" runat="server" Height="216px"
Style="z-index: 100;
left: 392px; position: absolute; top: 40px" Width="280px">
<asp:UpdatePanel ID="uppADComputer" runat="server">
<ContentTemplate>
<asp:GridView ID="gvADComputer"
runat="server"
Height="176px"
Width="392px">
<Columns>
<asp:TemplateField HeaderText="Select Computer">
<ItemTemplate>
<asp:ListBox ID="ListBox1"
runat="server"></asp:ListBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Button ID="btnSelectComputer" runat="server"
OnClick="btnSelectComputer_Click"
Text="Select Computer(s)" Width="200px" /><br />
<asp:TextBox ID="tbTest1" runat="server"
Width="384px"></asp:TextBox><br />
</ContentTemplate>
</asp:UpdatePanel>
</aspanel>
I'm trying to bind a dataset to a listbox control that is in a gridview's
templated field. However, in the code behind the intellisense does not
recognize the ID name of my listbox control....thus not giving me an
opportunity to bind the listbox's datasource to a dataview. Can you make any
recommendations?
I'm trying to put a list box within a gridview so that an end user may
select a record from the listbox and relate the selected value to the
row/record within the gridview.
Here is my HTML code:
<aspanel ID="pnlADComputerView" runat="server" Height="216px"
Style="z-index: 100;
left: 392px; position: absolute; top: 40px" Width="280px">
<asp:UpdatePanel ID="uppADComputer" runat="server">
<ContentTemplate>
<asp:GridView ID="gvADComputer"
runat="server"
Height="176px"
Width="392px">
<Columns>
<asp:TemplateField HeaderText="Select Computer">
<ItemTemplate>
<asp:ListBox ID="ListBox1"
runat="server"></asp:ListBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Button ID="btnSelectComputer" runat="server"
OnClick="btnSelectComputer_Click"
Text="Select Computer(s)" Width="200px" /><br />
<asp:TextBox ID="tbTest1" runat="server"
Width="384px"></asp:TextBox><br />
</ContentTemplate>
</asp:UpdatePanel>
</aspanel>