Search code examples
c#.netwebformsdevexpressdatagridviewcombobox

Binding a combobox associated with another combobox in aspxgridview


I want to bind cities combox associated with countries combobox in devexpress gridview's insert/update mode. My datas in a database so I need db connection. Which way should I try? Thanks for your suggestions.

Çağın


Solution

  • There is cascading combo boxes example in DevExpress demos:

    http://demos.devexpress.com/ASPxGridViewDemos/GridEditing/CascadingComboBoxes.aspx

    Demo uses combo box callback. Alternatively you can implement this using ajax calls in combination with combo box client functionality. Link to ASPxClientComboBox documentation:

    http://documentation.devexpress.com/#AspNet/clsDevExpressWebASPxEditorsScriptsASPxClientComboBoxtopic