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
370
Repopulating Combo box in the xamdatagrid.
posted

Hi,

I have a style written  for the drop down which is placed in the xamdatagrid and on the initialized event of drop down i populate the control.

The dropdown's itemsource is dependent on another combox. The control in the grid needs to be repopulated on the selection changed event of this Main combo box. What i have done here is made used of the drop button click event  and  repopulated the drop down.

Is there a better way of acheiving the same using datatriggers?

Thanks much.

  • 69686
    posted

    Hello,

    This is a good way to do this according to me.

    Using DataTriggers would be a rather static approach as you have to specify the value at which the DataTrigger will fire. If you have couple of items in the Main ComboBox and they are not changing this could also work.

    Regards,

    Alex.