edit,delete

<Columns>
                    <asp:TemplateField HeaderText="" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="center">
                        <ItemTemplate>
                            <a href="#" onclick="EditRow(this)" style="text-decoration: none; font-size: 9pt">Edit</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
                                id="linkRemove" runat="server" href="#" onclick="RemoveRow(this)" style="text-decoration: none;
                                font-size: 9pt">Delete</a>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>

 

tr.find("td:eq(2)").html("<a href='#' id='update" + type + "' onclick='UpdateRow(this)' style='text-decoration: none;'>Update</a>&nbsp;<a href='#' id='cancel" + type + "' style='text-decoration: none;' onclick='CancelRow(this)'>Cancel</a>");

posted @ 2010-03-02 11:18  xpwilson  阅读(127)  评论(0编辑  收藏  举报