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
80
Getting the row of a DropDownProvider
posted

Hi,

I have a WebHierarchicalDataGrid with a DropDownProvider in one of the columns. I need to change the currency format of one column depending on the value of this dropdown.

I have attached to the SelectionChanged event of the dropdown.

How can I get the row of the grid to which the dropdown belongs so I can update the format of the corresponding field?

Thanks in advance.

  • 16310
    Offline posted

    Hi Carlos,

    Since selecting an item in the dropdown will edit the value in the cell I suggest that you attach to the corresponding editing event - the cellValueChanged (client side) or RowUpdated (server side) event seems appropriate. You will be able to get the row and the cell from the event arguments.

    You can update me with more info on your scenario ( editing scenario, batch updating value, auto crud, preference of server side or client side code) if you want me to provide some sample code.