Detailsview itemupdating e newvalues

You can use the Smart tags menu or switch to the ASP.

NET view and replace the Customer ID Text Box with a Drop Down List.

After setting the Details View’s Item Updating method, you will need to modify the SQL Data Source’s Update Command, Update Command Type, and Update Parameters.

The legacy code in the SQL data source used a update statement with parameters.

Next you will need to configure the data source for the Drop Down List and bind the Drop Down List to the source for the list items and the source for the selected value.

Here are the steps: The last steps require that you bind the Data Text Field and Data Value Field properties to the Customer IDData Source and the Selected Value to the original source's Customer ID.

To demonstrate data binding for a Drop Down List in a Form View switch the Form View to the Edit Item Template.

Therefore you cannot provide the color through declarative binding.

What I can suggest is to use the Rad Grid's Item_Data Bound server event handler and set the selected color using the code behind where you can do the needed casts as shown below: Hi Jim, in case you haven't gotten the answer yet here's mine.

I'm saving the "#ffffffff" as the string version of the color in the database.

To bind to the colorpicker I do this in the grid's Item Bound event: I beat my head against the wall on this one as well, but with the Details View object.

Leave a Reply

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

One thought on “detailsview itemupdating e newvalues”

  1. Over the past fifty-odd years, American society has gone through a paradigm shift in terms of how we view family life, faith, and sexuality; and a combination of technology and legislation have fundamentally altered the culture.