can't Update information at the editing row

C

Cheryl

I have create a dropdownlist in datagrid, and when I
select the item in the dropdownlist. It will retrieve
information from the database and update
the "Boundcolumn". But I cant invoke
the "OnSelectedIndexChanged" when I clicked on the
dropdownlist.

<ASP:DATAGRID id="MyDataGrid" runat="server"
AutoGenerateColumns="False" HeaderStyle-BackColor="#aaaadd"
Font-Size="8pt" Font-Name="Verdana" CellPadding="2"
BorderColor="Black" BackColor="White"Width="100%" Font-
Names="Verdana" GridLines="Horizontal"
OnEditCommand="EditCommand" OnCancelCommand="CancelCommand"
OnUpdateCommand="UpdateCommand" nItemCommand="ItemCommand"
OnSelectedIndexChanged="changeFields">

<ASP:EditCommandColumn EditText="Edit" CancelText="Cancel"
UpdateText="OK"></ASP:EditCommandColumn>
<asp:TemplateColumn HeaderText="Stage">
<ItemTemplate><%#DataBinder.Eval
(Container.DataItem,"sStage")%>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList id="StageList" runat="server"
DataSource="<%# GetVersionStage(getFileName)%>"
DataTextField="sStage" >
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="dtDateTime"
HeaderText="Date/Time" ReadOnly="True"></asp:BoundColumn>
<asp:BoundColumn DataField="nSize" HeaderText="Size"
ReadOnly="True"></asp:BoundColumn>
</Columns>
</ASP:DATAGRID>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top