Rowupdating in grid senior dating agency uk


10-Dec-2020 13:41

As a workaround, I can add a javascript onchange event to the Drop Down List which is called when the value changes.

Is there a way I can pass this value back to the server and use it?

If you don't use one of the Data Source controls, you are required to handle the Row Updating event.

I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base.

Would you please provided more detailed description about you problem with complete code?

Following is a working sample I used to test, it works well.

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

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

So, you could use it in the javascript onchange event.

tbl Set Marks: Class, Section, Admission No, Subject ID, Subject Code, Max Marks, Marks I want to update marks inside gridview using edit command button.

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.

w=800&h=359 800w, https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=150&h=67 150w, https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=300&h=135 300w, https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=768&h=345 768w, https://taditdash.files.wordpress.com/2014/06/864w" sizes="(max-width: 800px) 100vw, 800px" /Grid View on Browser " data-medium-file="https://taditdash.files.wordpress.com/2014/06/gridview-on-browser.png?