By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,920 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,920 IT Pros & Developers. It's quick & easy.

Editable Datagrid DropDownList

P: n/a

Hi All,
I have an editable datagrid in which one of the fields becomes a Drop
dowl list in edit mode....i followed the example in the $ guysfrom rolla
however one of them is not really populated from the database, and hence
no need of a dataview...i would like to assign an array or arraylist
alone to it, however it gives all sorts of errors....the code is as

<asp:TemplateColumn HeaderText="Zone">
<asp:Label ID="lblZone" Runat="server">
<%# DataBinder.Eval(Container.DataItem,"cZone") %>
<asp:DropDownList ID="ddl1" Runat="server"
DataTextField="c1Zone" DataSource="<%#zoned%>"></asp:DropDownList>
public void zone()
ArrayList zoned = new ArrayList();
zoned.Add("GMT-04:00(Atlantic Time)");

Any ideas or links to articles will be helpful...
*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.