cyrus71 Posted August 4, 2006 Share Posted August 4, 2006 Hi,What I am trying to do is make my gridview be editable , the problem is when I click on the edit button nothing happends , i mean the EditItemTemplates do not show up, I dont know why , thank you for your helphere is some code:asp:GridView ID="TimeSheetsGridView" OnRowEditing="TimeSheetsGridView_RowEditing" DataKeyNames="TimeSheetId" runat="server" AllowSorting="True" OnSorting="TimeSheetGridView_Sorting" AutoGenerateColumns="False" Width="672px" EditRowStyle-Wrap="true" AllowPaging="True" BorderWidth="0px"><Columns><asp:BoundField DataField="Id" HeaderText="Identification" ReadOnly="true" Visible=false/><asp:TemplateField HeaderText="Date" SortExpression="Date" ><ItemTemplate><asp:Label ID="DateLBL" runat="server" Text='<%# Eval("TDate") %>'></asp:Label></ItemTemplate><EditItemTemplate><asp:TextBox ID="DateTXT" runat="server" CssClass="catname" Text='<%# Bind("TDate") %>'></asp:TextBox></EditItemTemplate></asp:TemplateField><asp:CommandField ShowEditButton="True" HeaderText="Edit" ButtonType="Image" EditImageUrl="Images/icon-edit.gif"UpdateImageUrl="Images/icon-save.gif" CancelImageUrl="Images/icon-cancel.gif" /><asp:CommandField ShowDeleteButton="True" HeaderText="Delete" DeleteImageUrl="Images/icon-delete.gif"ButtonType="Image" /></Columns><EditRowStyle Wrap="True" /></asp:GridView> Link to comment Share on other sites More sharing options...
aspnetguy Posted August 4, 2006 Share Posted August 4, 2006 How about the code ot the event handlers too.Is anything happening at all? Link to comment Share on other sites More sharing options...
cyrus71 Posted August 4, 2006 Author Share Posted August 4, 2006 How about the code ot the event handlers too.Is anything happening at all?Thanksother event handlers work good, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now