Find control in edititemtemplate in rowupdating event

I worry it will still dont have your new value, but let`s try.The other solution is to drop that dynamic control creation and uses standard item and edit templates (declaratively in the aspx file) With just Build Grid() called, then the ddl is null.New Values["Required Column Field Name"] = my New Value; Thanks Kate.Kate, Those events don't fire - the error occurs before then.I have therefore added the relevant xml, and when creating the grid, create the column as a Template Field and the Edit Item as a Drop Down List with its own Sql Data Source.So far so good, this all works, the grid is displayed, the Drop Down List appears, filled with the correct data, shows the correct initial item and lets the user select another. The when trying to get the value from the Drop Down List in the Row Updating event, I cant find it. I create a Recursive Find Control method that ran through every control on the page, and it cant find it.Ive tried peeking in the cell controls in the debugger and its just not there. Ive duplicated it in a simpler test page, with a test database.

And I can't use ' Mini' to lookup the 63, because the descriptions are not unique - there could be multiple IDs with the same description.As a workaround, I can add a javascript onchange event to the Drop Down List which is called when the value changes.Is there a way I can pass this value back to the server and use it?Thanks in advance Hello Marc: I assume that you can handle the Row Inserting and Row Updating events of the ASPx Grid View control for this purpose. New Values dictionary, so you can pass a custom value to the corresponding column.The ASPx Drop Down Edit control gets the required property, generates a new value according to your scenario, and passes it to a datasource as follows:e.

Leave a Reply

  1. christian poly singles dating 13-Dec-2020 08:01

    Olivia Wilde enjoyed a break in the sun and looked every inch the glamorous Hollywood jet-setter in one-piece by celeb-favourite brand Marysia Swim.

  2. are barry and chris from ghi dating 16-May-2020 04:41

    Beam the incredibly unique sounds of the man Violent J caled "The Muh Fucking Jim Morrison Of Rap.. " directly to your phone, tablet, computer, Apple TV from ITUNES Gutter Water: You can bottle it, freeze it, drink it, or boil it and inhale the vapors and be instanly teleported inside the mind of Ouija Macc as he brings a whole new level of musical mastery to the HATCHET Tatchery Mother Facko!!!!! Here is your last chance to get the exclusive DCG merch that was available this year’s Con!

  3. Free sex chat with girls wihout java or registeration 12-Sep-2019 20:04

    It won't take long before you find that perfect mix of slender, sexy, and seductive that will make a spectacular online date for the night.

  4. rob lowe and sarah jessica parker dating 09-Mar-2020 00:59

    Wir empfehlen allen unseren Nutzern, sich für die Flash-Version des Chats zu entscheiden.