i'm using asp.net 3.5 and what im trying to do is create the dropdownlist item dynamically base on value in each datarow, then user select from dropdownlist and click button to postback, when postback system should be able to know what value has been selected by user. the problem with following code is during postback, event of "OnItem_Created" get fired and e.Item.DataItem return null, therefore the dropdownlist will not get populated with the items and that caused the dropdownlist unable to return value selected by user. am i missing anything? is "OnItemCreated" the best place to dynamic create the dropdownlist item? any help will be appreciate. thanks!!
<form id="form1" runat="server">
<asp:Button runat="server" ID="btn" Text ="go" />
<asp:DataGrid runat="server" ID="grd" OnItemCreated="OnItem_Created">
<asp:DropDownList runat="server" ID="ddl">
View Complete Post