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
165
How to get dropdownlist object from UltrWebGrid Cell?
posted

Hi,

I am using NET Advantage 2008 CLR 2.0 version.

I have a standard "dropdownlist" column in my UltraWebGrid, now I will like to extract the dropdownlist object from my UltraWebGrid. 

Given I have the row and col index of my cell. How can I do that??

My objective is to get the dropdownlist selected item's datamember. Doing a

uwg.Rows[rowindex].Cells.[colindex].Value

simply only gives me the displaymember of the dropdownlist, which is not what I want.

 

Please shred some light onto this. Thank you!

Chinho

 

Parents
No Data
Reply
  • 49378
    posted

    Hi Chinho,

    If you are using a column which is of type DropDownList then there is no actual Dropdownlist object to be accessed.However, you should be able to match the Value of your cell (DisplayedValue) with the Datamember in your ValueListItems collections which can be accessed by:

    UltraWebGrid1.Columns[2].ValueList.ValueListItems

     

     

    In case you are using a templated column with a dropdown list, you would be able to directly access the Dropdownlist object inside the template. Detailed instructions on how to achieve this are available at:
    http://forums.infragistics.com/forums/t/26392.aspx

    Please tell me if this helps.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

     

Children
No Data