Event rowupdating which wasnt

But when i run it and click delete and clicking "yes" to confirm.

this error appears: The Grid View 'Pending Records Gridview' fired event Row Deleting which wasn't handled.

Can anybody help me pls here is my codes protected void Page_Load(object sender, Event Args e) public object Data Source public string Data Key Names public event Grid Hander Row Deleting; public event Grid Hander Row Sawing; protected void Grid View1_Row Command(object sender, Grid View Command Event Args e) } ublic partial class Category Control Panel : System. Inside the opening gridview tag in the aspx file add the assignment as follows: If the event handler Control Panel_Row Deleting is designed to handle a delete from gridview action then insert this as the event handler name.

Ensure that you re-bind the gridview after delete so that the changes are shown on postback.

" Insert Command="INSERT INTO [Pending Records] ([Username], [Password], [First Name], [Last Name], [Middle Name], [Address], [Gender], [Contact Number], [Plate Number], [Color], [Brand], [Liscensed Number]) VALUES (?

)" Update Command="UPDATE [Pending Records] SET [Username] = ?

One of the good things about Grid View is that it provides a built-in Command Field Buttons which allows us to perform certain actions like editing, updating,deleting and selecting of Grid View data.

When I click the Update button, I get the aforementioned error. Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As Grid View Update Event Args) Dim dd As Drop Down List = Direct Cast(Grid View1. Possibly they have mislabeled one of the feedback messages, try adding an empty routine handling each of those.Can you indicate how it did not work (same error, different error, lbl Status. thanksits the same error on the same yellow colored error page , the error doesnt even show on my lblstatus label.Coould it somehow have something to do with me publishing the altered files to my host. ı have been traying to create dynamic control panel using webusercontrol , delegate,and ADO.Even ı have write the delegate for deleting and editing ı faced with "The Grid View 'Grid View1' fired event Row Deleting which wasn't handled."problem . Page { Category Resposite _category Resposite=new Category Resposite(); protected void Page_Load(object sender, Event Args e) void Control Panel_Row Sawing(object sender, Grid Event Args e) void Control Panel_Row Deleting(object sender, Grid Event Args e) The code that you have posted is incomplete (missing the aspx file code), from your description of the problem it sounds as though you have not assigned the Row Deleting event to Grid View1.

Leave a Reply