Click here to Skip to main content
16,021,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello ,

I have a problem .
At my page there is a grid with columns like

XML
<asp:CommandField ButtonType="Image"  NewImageUrl="~/images/new1.JPG" ShowInsertButton="True" />
        <asp:CommandField ButtonType="Image"  EditImageUrl="~/images/update1.JPG" ShowEditButton="True" />
        <asp:CommandField ButtonType="Image"  DeleteImageUrl="~/images/delete1.JPG" ShowDeleteButton="True" />



I want to used RowCommand event.It is ok for Insert & Update process
but not enough for Delete.
If I dont add RowDeleting event my page has error at runtime when trying delete a row.When I add RowDeleting event (even if it is empty)
page works fine.
Do I have to add RowDeleting event when I have ShowDeleteButton .
Posted

Hello,
In the Data Grid Event's There Is A Also One Event Of Deleting Or Deleted Rows And You Define There A Event Name But in .cs File The Event Is missing So The Error Occurs.
So You Delete A Event Name From Property Of Grid View.
Thank you.
 
Share this answer
 
Thanks your help but there is not any event binded grid
except RowCommand event.
 
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