In rowupdating


13-Dec-2019 05:54

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?

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.

As a beginner it's very tough and challenging to work with controls like a gridview in ASP. Even I faced difficulties at the starting point of my career. And mainly here I am not going to explain about gridview and other events in it, because there are a lot of good articles available for that.

Here I am only going to show the different ways we can use code to take the value from gridview.

In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.

We have an application which creates maintenance screens based on an xml configuration file. This all works However, we have a new requirement to add Drop Down Lists to some columns to enforce data integrity.

Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: Before we start examining the ASP.