Row Deleted = new Grid View Deleted Event Handler(Grid View1_Row Deleted); void Grid View1_Row Deleted(object sender, Grid View Deleted Event Args e) But i still dont have Deleting defined i guess, dont know to the line should look like! Equal("delete") && grid View Deleting Event Handler == null) So your options are: Handle the On Row Deleting event (even though you don't have to do anything in the event handler...really really useful).
ERROR: I just finally figured out WHY I need to handle the event after I had a few grids that worked without the handling the event and others that didn't. Well I guess there is some nice code somewhere in the Data Grid that looks like this... Or you can change the Command Name to something other than "Delete" like say "Do It...
"SELECT responsablepropuesta.respgrupo as IDResp Grupo, tb1.nombre as Resp Grupo, responsablepropuesta.resppropuesta as IDResp Prop, tb2.nombre as Resp Propuesta FROM responsablepropuesta INNER JOIN usuario tb1 ON tb1.idusuario = responsablepropuesta.respgrupo INNER JOIN usuario tb2 ON tb2.idusuario = responsablepropuesta.resppropuesta where idpropuesta='"Description: An unhandled exception occurred during the execution of the current web request. Http Exception: The Grid View 'Grid View2' fired event Row Editing which wasn't handled.
Please review the stack trace for more information about the error and where it originated in the code. Source Error: An unhandled exception was generated during the execution of the current web request.
Raise Post Back Event(String event Argument) 31 System. So to cancel the row edit all that was needed was the following code inside the this cancel event: Protected Sub Grid View_Row Canceling Edit(By Val sender As Object, By Val e As System.
Sure once I figured the following out, it was easy, but getting there didn't make much sense.
Just double click on Row Editing to create the method. Find Control("Drop Down List1"); Thanks, Grid View. New Edit Index End Sub and then rebind the data, and presto, my drop downs, and text boxes appeared.
Raise Bubble Event(Object source, Event Args args) 35 System.
On Bubble Event(Object source, Event Args e) 117 System.
Raise Post Back Event(IPost Back Event Handler source Control, String event Argument) 32 System. I am continually disappointed that the processes for effecting methods seem to be non-intuitive property changes.
Hi Cisco Cylk, Try this: Text Box tb = (Text Box)Grid View. Just thought I'd add some more development discoveries here by the hack that I am...