Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
when we click on image or image button (which is put in gridview),all field of textbox are filled from that row which we have select for update.Now we update some data and click on submit ,then data will be update and that will replace in gridview with new data.
I don't know how to do this,please help me.
Posted
Comments
Member 9581488 20-Dec-12 12:43pm    
Have you tried something?? No-one can do your homework and write code for you...!!!! Instead of asking question here, "Google" it.
Member 9511889 21-Dec-12 3:45am    
tare homework na karvu hoy to chupchap besi re.Aaa website tara mate nathi.
Member 9581488 21-Dec-12 10:17am    
Please write in english( so others can read it that you are abusing me)and if you don't know english then this website is not for you.....

You would use a template column for this:

<asp:datagrid id="DataGrid1" runat="server" autogeneratecolumns="false" xmlns:asp="#unknown">
<columns> <asp:templatecolumn>
<itemtemplate>
<asp:imagebutton id="btnDelete" runat="server" imageurl="/images/delete.png" commandname="Delete" />


 
Share this answer
 
v2
You would use a template column for this:

<asp:datagrid id="DataGrid1" runat="server" autogeneratecolumns="false" xmlns:asp="#unknown">
<columns> <asp:templatecolumn>
<itemtemplate>
<asp:imagebutton id="btnDelete" runat="server" imageurl="/images/delete.png" commandname="Delete">


 
Share this answer
 
<asp:datagrid id="DataGrid1" runat="server" autogeneratecolumns="false" xmlns:asp="#unknown">

<asp:templatecolumn>

<asp:imagebutton id="btnDelete" runat="server" imageurl="/images/delete.png" commandname="Delete">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900