none
Add multi-column values to a Dropdown control RRS feed

  • Question

  • Hi,

    An aspx page is consuming a "Query service" of MS Dynamics AX.

    The query has two tables a customer table and a party table which are related.

    The customer table has the customer ID (account num) field and the party table has the name field.

    I have a dropdown control as:

    dataSet = client.ExecuteQuery(query, ref paging);
    listCustomers.DataSource = dataSet.Tables["CustTable"];
    listCustomers.DataValueField = "AccountNum";
    listCustomers.DataTextField = "AccountNum";
    listCustomers.DataBind();

    I want to display values in the dropdown as "AccountNum" + " " + "Name".

    How could I achieve this?

    Any help is appreciated!

    Regards,

    Abhinay

    • Moved by CoolDadTx Thursday, November 22, 2018 4:07 PM ASP.NET related
    Thursday, November 22, 2018 9:19 AM

Answers

All replies