Link to home
Start Free TrialLog in
Avatar of vinuramdas
vinuramdas

asked on

Datagrid with buton

hi all,
I am doing a ASP.Net application. i ahve a datagrid with one colmn with image button. when i click on this image button , i want to know the row number, so that i can identify which button has clicked.

here is my code
<asp:datagrid>
<columns>
<ASP:TEMPLATECOLUMN>
<ITEMSTYLE Width="100px"></ITEMSTYLE>
<ITEMTEMPLATE>
<asp:ImageButton id="imgbtEdit" onclick="imgbtEdit_click" runat="server" ImageUrl="Images/EditIcon.gif"></asp:ImageButton>
</ITEMTEMPLATE>
</ASP:TEMPLATECOLUMN>
</columns>
<asp:datagrid>


thnaks in advance
Vinu
ASKER CERTIFIED SOLUTION
Avatar of PeterFearn
PeterFearn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vinuramdas
vinuramdas

ASKER

thnanks and it working as i expect