Folks,

I have 2 editable columns remark & status(open or
close)in a datagrid.. one is textbox, other is
datagrid. Problem is: when I click on EDIT, the
existing value in drop down changes to default 'open'
and even if i dont touch DDL ... after clicking
update, STATUS value also changes (from original CLOSE
to default OPEN).. how can I keep the existing value
in dropdown from changing involuntarily? 

here is HTML snap..
<asp:TemplateColumn HeaderText="Remark">
                                                <ItemTemplate>
                                                        <%# DataBinder.Eval(Container,
"DataItem.tktRemark")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                        <asp:TextBox ID="txtRemark" 
Text='<%#
DataBinder.Eval(Container, "DataItem.tktRemark")%>'
Runat=server />
                                                        <asp:RequiredFieldValidator
ControlToValidate="txtRemark" Text="*" Runat="server"
/>
                                                </EditItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:TemplateColumn SortExpression="tktStatus"
HeaderText="Status">
                                                <ItemTemplate>
                                                        <%# DataBinder.Eval(Container,
"DataItem.tktStatus")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                        <asp:DropDownList 
ID="dropStatus"
Runat="server">
                                                                
<asp:ListItem>Open</asp:ListItem>
                                                                
<asp:ListItem>Close</asp:ListItem>
                                                        </asp:DropDownList>
                                                </EditItemTemplate>
                                        </asp:TemplateColumn>
Thanks,
Sam


                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to