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
185
Get Selected Value of dropdownlist within templated column of ultrawebgrid
posted

Hello Sir,

 I am using Infragistic Netadvantage for .NET 2007 Vol 3  CLR 2.0
In Ultrawebgrid i m using template column for dropdownlist
I find the control but not able to get selected value for that dropdownlist

If i use ultrawebgrid column(not templated column) including type Dropdownlist that control is not visible at run time

Can u suggest me any solution for that
Thanks in advance
Sonal

Parents
No Data
Reply
  • 28464
    posted

    Hello Sonal,

    Once you get the instance of the dropdownlist, you just need to cast it back to DropDownList object and then inspect the SelectedValue / SelectedIndex property.

    If this does not match the selected value / index, then most probably this is a page life-cycle issue. Typically problems like this mean that you are rebinding the grid prior to checking its value. Rebinding the grid clears all its state, including the state of nested controls. Please, make sure that you are not rebinding the grid prior to checking the values of the dropdownlists. Also, please take into account the rebinding might occur implicitly if you are using the InitializeDataSource event.

Children
No Data