Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > can't Update information at the editing row

Reply
Thread Tools

can't Update information at the editing row

 
 
Cheryl
Guest
Posts: n/a
 
      10-21-2003
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.

<ASPATAGRID 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>
<aspropDownList id="StageList" runat="server"
DataSource="<%# GetVersionStage(getFileName)%>"
DataTextField="sStage" >
</aspropDownList>
</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>
</ASPATAGRID>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to stop editing another row in a Gridview, ReorderList etc when another row is already being edited Andrew Jocelyn ASP .Net 2 04-27-2009 02:01 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
"Deleted row information cannot be accessed through the row." WHY!! Mohammad Ali via DotNetMonster.com ASP .Net 0 04-16-2005 07:17 AM
Clicking on a datagrid row selects it but doesn't update prev row Sameeksha ASP .Net Web Controls 0 04-07-2005 10:05 AM
Row / Column gets much bigger when editing a row in grid Bazza Formez ASP .Net 4 12-09-2004 11:03 PM



Advertisments