am making a website ,i need to insert a button inside the gridview.on the button click event i need to retrive all the values of that particular particular row on which the button is clicked..i need to insert button in the last column...below is my gridview
code.tplease help me out...........thanks in advance
Rounak Rana
Member
48 Points
237 Posts
How to insert a button into gridview and how to get the values of the row associated with that p...
May 30, 2012 09:50 AM|LINK
am making a website ,i need to insert a button inside the gridview.on the button click event i need to retrive all the values of that particular particular row on which the button is clicked..i need to insert button in the last column...below is my gridview code.tplease help me out...........thanks in advance
<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" AllowPaging="True" AutoGenerateColumns="False" onpageindexchanging="GridView1_PageIndexChanging"> <FooterStyle BackColor="#CCCC99" ForeColor="Black" /> <Columns> <asp:BoundField DataField="trans_id" HeaderText="Transaction Id" /> <asp:BoundField DataField="client_trans_id" HeaderText="Client_Trans_Id" /> <asp:BoundField DataField="msisdn" HeaderText="MSISDN" /> <asp:BoundField DataField="operator_code" HeaderText="Operator Code" /> <asp:BoundField DataField="circle_code" HeaderText="Circle Code" /> <asp:BoundField DataField="trans_amount" HeaderText="Transaction_Amount" /> <asp:BoundField DataField="datetime" HeaderText="Datetime" /> <asp:BoundField DataField="status" HeaderText="Status" /> <asp:BoundField DataField="charged_amount" HeaderText="Charged Amount" /> <asp:BoundField DataField="response_code" HeaderText="Response Code" /> </Columns> <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" /> <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" /> </asp:GridView>nijhawan.sau...
All-Star
16430 Points
3173 Posts
Re: How to insert a button into gridview and how to get the values of the row associated with th...
May 30, 2012 10:00 AM|LINK
http://www.codeproject.com/Articles/24085/Insert-Update-Delete-with-Gridview-simple-way
http://geekswithblogs.net/casualjim/archive/2005/08/29/51360.aspx
RameshRajend...
Star
7983 Points
2099 Posts
Re: How to insert a button into gridview and how to get the values of the row associated with th...
May 30, 2012 10:10 AM|LINK
Hai
check pls
http://forums.asp.net/t/1229203.aspx/1
http://www.codeproject.com/Articles/24085/Insert-Update-Delete-with-Gridview-simple-way
thank u
ambikabk
Member
128 Points
36 Posts
Re: How to insert a button into gridview and how to get the values of the row associated with th...
May 30, 2012 10:28 AM|LINK
use TEmplate ffields
AMBI
bhaskar.mule
Contributor
2270 Points
659 Posts
Re: How to insert a button into gridview and how to get the values of the row associated with th...
May 30, 2012 10:35 AM|LINK
hi
we can use link button in gridview and find the row data when we click on the perticular row
http://csharpektroncmssql.blogspot.com/2011/12/link-button-in-gridview-in-aspnet.html
Site:Rare technical solutions