Rowupdating which wasnt handled

Posted by / 07-Sep-2016 01:50

Rowupdating which wasnt handled

" 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] = ?

" You are trying with a command name of Delete for your delete button.

ı have been traying to create dynamic control panel using webusercontrol , delegate,and ADO. In-order to perform Edit and Update in Grid View we need to use three events ( Grid View_Row Editing, Grid View_Row Canceling Edit , Grid View_Row Updating).

You need to change the command argument from Delete to something else like Delete_Product or whatever...

So the gridview creates a row deleting event automatically....

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 . Can anybody help me pls here is my codes protected void Page_Load(object sender, Event Args e) { Grid View1. Somebody Help me :( i've also tried adding this code ``On Row Deleting = "Pending Records Gridview_Row Deleting" but no success! :( Here's my gridview full code: " Select Command="SELECT * FROM [Pending Records]" Delete Command="DELETE FROM [Pending Records] WHERE [ID] = ? Data Key Names }; } public object Data Source { get; set; } public string Data Key Names { get; set; } 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) { Grid View Row gvr = ((Link Button)e. Now we can start to write our codes for editing and updating the information in the Grid View.

rowupdating which wasnt handled-18rowupdating which wasnt handled-37rowupdating which wasnt handled-50

To add those command fields mentioned in the Grid View you can follow these few steps below: 1. Right Click on the Grid View and Select -- Add New Columns 3. Check Delete and Edit/Update options then OK As you can see the Edit and Delete Command Field are automatically added in the last column of Grid View.

One thought on “rowupdating which wasnt handled”