Find control in rowupdating event
Find control in rowupdating event - Sex online chat without creating any account
You can also assign multiple primary keys if desired by separating them with a comma (,). This allows you to create a new instance of a class and assign values to properties in one easy step.
If it is expensive, this could easily sum up to a large cost. In this example, I am hiding it if the field "Scenario" of the grid shows the text "Actual" for the relevant row of the Row Data Bound event.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
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.
How ever i can access the controls in row updating . Net Search, and more you are not using a Data Source control which means you need to provide the datasource again to the Grid View and bind it after you set the editindex (call its Data Bind() method) Only after you have bound it again with its datasource you will be able to find the Drop Down List using Find Control: EDIT: you will find other examples that involve the Row Data Bound event too - wherein you could check for the edit mode and still do the same using Find Control Pete, This is what i am doing in Row Editing .
I can get the control in rowupdating but my main purpose is to get dropdown in this event and populated dropdown.
Every one can use it to compare the new value with old ones.