Fired event rowdeleting which wasnt handled




















Thanks Artie! That worked! Now I have just one more little problem. ToInt32 e. Show me the delete code. I suspect you are trying to delete the rows. The grid is numbered from 0 to rows. Hi Artie, OK, here it is: On my list. Eval e. DataItem, "Status". FindControl "btnDelete" ; l.

Hello, I found the solution. To make the page refresh I had a bindgrid on the RowCommand event. Instead, I should have put the bindgrid on the RowDeleting event. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.

Let's work to help developers, not make them feel stupid. Related Questions. How to solve this error:the gridview 'gridview1' fired event rowediting which wasn't handled.

Layout: fixed fluid. Web01 2. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 11 years, 2 months ago. Active 8 years, 10 months ago. Viewed 30k times. FindControl "HiddenField1". Value; lblStatus. Improve this question. Timwi Janis Janis 2 2 gold badges 6 6 silver badges 13 13 bronze badges. Add a comment. Active Oldest Votes. Well I guess there is some nice code somewhere in the DataGrid that looks like this I used hardcoded strings and it passed code review.

So your options are: Handle the OnRowDeleting event even though you don't have to do anything in the event handler DoItNow" and then you don't have to handle the event.

How about at least some documentation on this sweet "feature" Microsoft????? Actually I found out it is documented that those commands cause the build-in edit functionality to being working its magic.

It can be can be found under "Enabling the Built-In Editing Functionality", although it doesn't go into a lot of detail about what is happening or why. I would think that the built in functionality would only occur if one were to use the CommandField and set the ShowEditButton or ShowDeleteButton to true. The content you requested has been removed. Ask a question.



0コメント

  • 1000 / 1000