Filling The dropdown list box in the template column....

  • Thread starter Thread starter John
  • Start date Start date
J

John

In my ASP.Net(VB) application I am using data grid with template column.

Here is my code looks like this....

..
..
<asp:TemplateColumn>
<HeaderTemplate>
CustomerId
</HeaderTemplate>
<ItemTemplate>
<ASP:DropDownList id = "CutomerId" runat =
"Sever"></asp:DropDownList>
</ItemTemplate>
..
..
I want to fill the dropdownlist box from a stored procedure where the stored
procedure will have only one column called customer Id.
Please advice.
Any short piece of code will be a great help.

John
 
I havn't used a grid yet as I've never-ever had to progress beyond a
datagrid. But in a datagrid I would put the code to populate the combo in
the DataBound event.
 
Back
Top