Gridview onrowupdating onrowupdated eset nod32 not updating


05-Feb-2018 03:32

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.

After investigation, it looks like the Selected Index Changed is not called because on the postback with update, the Drop Down List doesn't exists, therefore the event doesn't exist.

generate a javascript function with the name "__do Post Back".

this is the function that is called by all control when sending information to the server.

When all you've got is a Hammer, Every Problem looks like a Nail. If Row Updated event is not going to fire, is there a way to check whether the update statement was successful? if the rows affected were 0 or The Row Updated event will only fire when using a Data Source Control in If the reason for no update is an Exception, you can catch it easily with a try around the Execute. Please remember to click “Mark as Answer” on the post that helps you.

From what was said in the other comment, should I be calling the Build Grid from somewhere other than Page_Load()?

What happen if you leave the Bind Grid(); at the end but call Build Grid(); before finding the ddl?

I have therefore added the relevant xml, and when creating the grid, create the column as a Template Field and the Edit Item as a Drop Down List with its own Sql Data Source.

So far so good, this all works, the grid is displayed, the Drop Down List appears, filled with the correct data, shows the correct initial item and lets the user select another. The when trying to get the value from the Drop Down List in the Row Updating event, I cant find it. I create a Recursive Find Control method that ran through every control on the page, and it cant find it.

I worry it will still dont have your new value, but let`s try.