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
1560
Showing combo box in grid
posted

 I have a dataset

Table Account and AccountType

I binded the grid to that dataset. In Accoun, it has a field AccountTypeId

Now the grid shows AccountTypeId. How can I not show the ID but the name of the account type ? Using the dataset

Parents
  • 37774
    Verified Answer
    posted

     One approach would be to use an UltraDropDown for the ValueList of the column and bind that UltraDropDown to the child table; you would set the DisplayMember to the column that you actually want to display and the ValueMember to the ID column.  Another approach would be to hide the actual ID column and create an unbound column, copying over the mapped value to the unbound column in the InitializeRow event.  The first approach should be pretty simple to implement, though.

    -Matt

Reply Children