开发者

Retrieving Row Data from a Column in DataGrid in ASP.NET

开发者 https://www.devze.com 2022-12-18 09:14 出处:网络
I\'ve created a Column button in datagrid using this code <Columns> <asp:ButtonColumn Text=\"Resend\" But开发者_StackOverflow中文版tonType=\"PushButton\" CommandName=\"Resend\"></asp:B

I've created a Column button in datagrid using this code

<Columns>
    <asp:ButtonColumn Text="Resend" But开发者_StackOverflow中文版tonType="PushButton" CommandName="Resend"></asp:ButtonColumn> </Columns>

But I don't know where to access the event of this Button, also I would like to know how to retrive the row data of this button thanks.


Here is an msdn example of how to this
One more sample with simple code.


Try using FindControl.

See this example:http://www.jigar.net/articles/viewhtmlcontent4.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号