Objectdatasource onupdating dating advice on a french guy

by  |  22-May-2019 04:35

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.

However, of you set up your Table Adpater to automatically generate Update statements, it will send it as @original_Employee ID, which is why original__ is the default value for Old Values Parameter Format String. The Grid View will automatically pass the Employee ID to the Delete Method, there is no need to put it in the Command Argument property.

While I'm very happy for anything to be working after so much time, I still feel like this is a bad hack for this to work.

I have a hard time fathoming why this seemingly simple use of the Grid View on my part has turned out to be very complicated.

Because the Update Parameters collection contains a Control Parameter object that is bound to the selected value of the Drop Down List, the button that triggers the Update operation is enabled only after an employee is selected.

Raising an event invokes the event handler through a delegate.

Hey, I've been working a gridview that uses an Object Data Source to perform either select, insert, delete or update.

Community Discussion