Gridview onupdating event
However, it also pulls the entered value from the textbox when you are updating and sends it to your Object Data Source's Update Method.Currently, Role ID and Employee ID are the only update parameters showing up during the Updating event because they are the only ones you have specified Bind for instead of Eval.
You shouln't need any Bind or Eval statements for Employee ID since it is already specified in Data Key Names.This was occuring even though I had placed Old Values Parameter Format String="original_" or Old Values Parameter Format String="" within the Grid View's attributes.Ok, So I was able to resolve this issue by going into the On Updating event in the Object Data Source and doing the following below.I want to stop users entering a value (integers) in DDL2 which is greater than that in DDL1.
I have tried a simple Compare Validator - adding it underneath DDL2 in the Edit Item Template.You still might have to change Old Values Parameter Format String to "" instead of "original_", but that depends on how you have your Table Adpater or PTCPipeline. Again, since Employee ID is in Data Key Names, you don't need a Bind statement for it.