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";

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

    How could I achieve this?

    Any help is appreciated!



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


All replies

  • Please post questions related to data binding and ASP.NET in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, November 22, 2018 4:07 PM
  • I have posted my query here
    • Marked as answer by abhinaybuiss Friday, November 23, 2018 8:35 AM
    Friday, November 23, 2018 8:35 AM