I suppose my eyes got big when I saw all the new properties and methods, and wanted to try them all out. Most articles I found were for hardcoded datasources (especially on MSDN, ugh) and didn’t really help me much, so this post will be referring to Grid Views with dynamically bound datasources.
The error is: The Grid View 'Grid View1' fired event Row Editing which wasn't handled.
Then, when i set back the grid view to Enable Editing as False, it works without error.
Because we are not using the Grid View’s built-in data model and are binding dynamically, the Grid View will not switch into and out of Edit Mode automatically.
Thus, in order to switch it into Edit Mode, in each of your event handles (Row Editing, Row Updating, and Row Canceling Edit) you must do two things: Protected Sub Grid View1_Row Editing(By Val sender As System.
Raise Post Back Event(IPost Back Event Handler source Control, String event Argument) 13 System.
Raise Post Back Event(Name Value Collection post Data) 9643314 System. To enhance this process, be sure to include your Grid View in an AJAX Update Panel. Everything should be sorted out when the “Update” link is pressed.This was my first foray into this part of the Grid View’s functionality, since I haven’t really had to develop anything using it since the switch to 2.0, as everything in Data Grids still functioned fine. The Row Updating event is where it gets tricky, since pulling values is not necessarily intuitive. That’s where you come in 🙂 If you’re interested in joining the discussion to post your own problems, fixes, etc.With a little bit of research, a lot bit of patience, and some help from the internet community, I was able to solve all my issues, and pretty elegantly at that. You can’t do something like Dim name As Hyper Link Dim inv As Text Box name = CType(Grid View1. in an actual post, just email me or comment somewhere and we’ll talk about it.======================================================================================== When i set the gridview to Enable editing and then i do the code to bound the grid view to a drop down list, an error has occur when i debug the code. Data Bind(); And then, when i delete the Data Source ID (Sql Data Source1) but still maintaining the gridview to Enable Editing, then i debug the code, it can display interface with the gridview.