Gridview rowupdating event in asp net asian dating kiss
Is there a way I can pass this value back to the server and use it?
I have a break on the Sub statement for the Row Updating handler ... The Edit and Cancel buttons fire the Row Command event, however, the Update button does not. No breakpoint was triggered when I hit the Update button. I truly appreciate all the suggestions you've given.
This is becoming so frustrating it's getting almost comical. Breakpoints were triggered for the Row Editing and Row Command.
I found that simple data binding of my Drop Down List in my Grid View to my Sql Data Source was not going to be enough.
I would need to set values passed to the Sql Data Source control on the update event, and as part of this I would need to reference the controls contained in the row being updated.
Then within the new method one can access controls within the Grid View row being edited by referencing the Row Index attribute of the Grid View’s Rows collection. Find Control("ddl Service Level List"), Drop Down List) Dim lbl Support Date As Label = CType(GVSupport Info.
Ive tried peeking in the cell controls in the debugger and its just not there. Ive duplicated it in a simpler test page, with a test database.
The other solution is to drop that dynamic control creation and uses standard item and edit templates (declaratively in the aspx file) With just Build Grid() called, then the ddl is null.
Unfortunatley, I can't drop the dynamic creation, as this app is used to maintain three different systems, and being defined by an XML configuration file, means that the page can be used to maintain multiple tables.
To do this, I created an instance of the Row Updating event for the Grid View.
This event passes the necessary information to the method via the Grid View Update Event Args parameter. Find Control("Label20e"), Label) Sql DSupport Info.
If I call the Bind Grid() at the start of Row Updating then the Drop Down List is available, but the selected Value is lost.