Gridview rowupdating findcontrol c
before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).
Every one can use it to compare the new value with old ones.
Ok but presumably I still have to resolve the problem of locating my editable controls within the Grid View before I do this, or do I need to do this first...
I'm confused about the ordering of events CAn you show me where tis fits in to the code I had been working on: protected void Grid View1_Row Data Bound(obj no same as before my grid changes when I click edit and I see my dropdowns etc populated with the original selections - I can change all my editable fields but when I click on Update I still get the error cannot find control DDLCategory Edit in Control Parameter Edit Category ID - my Update parameters below in case they are at fault: My apologies for such a long delay, I think I've led us on a bit of a wild goose chase.
I have Gridview with Item Template and Edit Item Template: But when i click "Ok" button, nothing happens.
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.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
protected void Grid View1_Row Data Bound(obj if I write the code as below it appears not to error but I still get my original error when I click the update button so it appears not to have resolved anything either: protected void Grid View1_Row Data Bound(obj As before it seems ok in the code behind but still when I click the update button I get the same message...
Interestingly if I look at the view source on my page when it is in edit state none of my controls appear just a table of values that would be held in the controls - is this normal?
The Row Editing event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.