or
| <telerik:RadGrid ID="PartnerListGrid" runat="server" |
| AllowSorting="True" GridLines="None" Skin="Vista" ShowGroupPanel="True" |
| OnItemDataBound="PartnerListGrid_ItemDataBound" AutoGenerateColumns="False" |
| OnCancelCommand="PartnerListGrid_CancelCommand" |
| oninsertcommand="PartnerListGrid_InsertCommand" |
| onupdatecommand="PartnerListGrid_UpdateCommand"> |
| ... |
| <EditFormSettings EditFormType="Template"> |
| <FormTableItemStyle Width="100%"></FormTableItemStyle> |
| <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> |
| <FormStyle Width="100%" BackColor="white"></FormStyle> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" |
| style="border-collapse: collapse"> |
| <tr>...</tr> |
| <tr>...</tr> |
| <tr> |
| <td align="right" colspan="2"> |
| <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"></asp:Button> |
| <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"></asp:Button> |
| <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
| protected void PartnerListGrid_CancelCommand(object source, GridCommandEventArgs e) |
| { |
| PartnerListGrid.MasterTableView.ClearEditItems(); |
| } |