Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : Filling The dropdown list box in the template column....


John
3/7/2004 10:35:06 PM
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





Felbrigg
3/8/2004 10:14:34 AM
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.

[quoted text, click to view]

AddThis Social Bookmark Button