Gridview onupdating event

I can set Control To Validate fine but Control To Compare shows no values (in the Properties pane dropdown).So, how can I: just use e.cancel in the rowupdating event to not execute the update and return row to normal mode.The Eval method is read-only -- it pulls the data from the DB and prints it to the HTML output.To get data out of your Edit Item Template and make it part of the Update operation, you have to do this: The Bind method is 2-way: when reading from the database, it acts just like Eval.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.I'm extremely leary now of using the Object Data Source object for anything if it's going to be this much of an effort.Anyway, thanks again for any advice or tips on what might done to get this to work correctly.

Grid View will cause Object Data Source to automatically send the Employee ID value to the Update Method because it is a Data Key (primary key).

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.

However, you shouldn't need to specify a Bind for Employee ID since it is in the Data Key Names of your Grid View (the primary key).

You shouln't need any Bind or Eval statements for Employee ID since it is already specified in Data Key Names.

Search for gridview onupdating event:

gridview onupdating event-66gridview onupdating event-34gridview onupdating event-2gridview onupdating event-72

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “gridview onupdating event”