Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Dropdownprovider
posted

I have dropdownprovider with for example TextField = "DelayName" and ValueField = "DelayID". How is it to get the SelectedValue method?
I am using the following code snippet in ObjectDataSource updating event

DropDownProvider ddpIndName = (DropDownProvider) grdDelayTime.EditorProviders ["ddpDelay"];
e.InputParameters ["DelayID"] = ddpIndName.EditorControl.SelectedValue;

, but the SelectedValue always return null.

Help me with piece of code. Thank s in advance.


  • 375
    posted

    Hi

    i do it at grid RowUpdating event

    e.Values["your column in grid that bind to the dropdown"

    ]