Sherwin
Sherwin

Reputation: 377

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

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

<Columns>
    <asp:ButtonColumn Text="Resend" ButtonType="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.

Upvotes: 2

Views: 433

Answers (2)

Binoj Antony
Binoj Antony

Reputation: 16186

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

Upvotes: 2

mr.b
mr.b

Reputation: 2708

Try using FindControl.

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

Upvotes: 0

Related Questions