Last post May 02, 2012 09:55 PM by bbcompent1
May 02, 2012 09:02 PM|Spontan23|LINK
I have a custom edit button in gridview. How should I bind it?
<asp:Button ID="Button14" runat="server" commandname="Edit" Text="Edytuj" />
May 02, 2012 09:30 PM|ammasbhatti|LINK
Use Item template for this purpose, and catch button click event in Item command event in gridview.
Just go through these links I hope you will find your answer.
May 02, 2012 09:32 PM|bbcompent1|LINK
What do you want to bind it to? A value from a datasource? A command argument? If you want to show text from your database, you do something like this for example:
<asp:Button ID="Button14" runat="server" commandname="Edit" Text='<% Eval("Fieldname") %>' />
May 02, 2012 09:36 PM|Spontan23|LINK
I want to show the edititemtemplate after Button14 click. In the edititemtemplate I have an editor, but after I click edit it shows nothing.
May 02, 2012 09:40 PM|bbcompent1|LINK
can you show us code behind for Button14_Click(object sender, EventArgs e) please?
May 02, 2012 09:52 PM|Spontan23|LINK
There is no sub for button14_click. It should just show edititemtemplate. It shows all the values included update and cancel buttons except this editor that should show data from "Post".
May 02, 2012 09:55 PM|bbcompent1|LINK
Spontan, I think this one here is related to the other problem with GridView edit showing the Editor, am I right? If so, we should join this thread to the other one.