Webdatagrid rowupdating not firing

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name. Source Error: Line 68: Dim percentage As String = Direct Cast(e.

webdatagrid rowupdating not firing-26webdatagrid rowupdating not firing-15webdatagrid rowupdating not firing-21webdatagrid rowupdating not firing-82

Yes, I did put the breakpoint at the Row Updating line (and not in the function).It's the control's responsibility to add its contents to viewstate. Find Control("control Name"); to get the control in the row. From there you can get at its properties including Your answer might not have applied to the OP's question but it helped me out. When you use a Template Field and bind literal text to it like you are doing, will actually insert a control FOR YOU! You can see this if you look in the debugger near your line of code that is getting the empty text. ------- Unable to cast object of type ' System. You have to make sure that you aren't setting your Grid View's data when it is not postback.If you do this, your Grid View's source will be refreshed before you're able to grab the new values out of it.

Leave a Reply