How to hide the Display Member column

4 posts, 0 answers
  1. Cameron Hart
    Cameron Hart avatar
    17 posts
    Member since:
    May 2008

    Posted 07 Jul 2009 Link to this post

    Hey guys,

    I'm using the MultiColumn ComboBox to select an item for editing. The ComboBox ties into a DataTable. That DataTable has the following columns of interest:

    1. An integer column, "id", the primary key.
    2. A string column, "code"
    3. A string column, "description"
    4. A string column, "display"

    There are other columns, but they're not important.

    The "display" column is calcualted by a SQL statement before it gets to the table - the Column itself doesn't understand that it is an expression column.

    I want the "display" column to be the DisplayMember. But I do not want that column to be visible when I use the Drop-Down of the comboBox.

    When I get the gridView inside the Drop-Down, and set the "display" column .IsVisible = false, the column goes away from the Drop-Down, but the DisplayMember no longer works. I get the "code" column, not the "display" column.

    Is there a way to hide the column used by the DisplayMember? Or will I have to assign it manually every time a new row is selected in the Drop-Down?
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 09 Jul 2009 Link to this post

    Hello Cameron Hart,

    This is just how RadMultiColumnComboBox works. It searches for a cell to retrieve the value required for the DisplayMember which does not work in your case. This approach is wrong as it does not work in all cases. RadMultiColumnComboBox is scheduled for major re-factoring as it has not been updated for quite some time now. Please excuse us if this causes you an inconvenience.

    Regards,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Cameron Hart
    Cameron Hart avatar
    17 posts
    Member since:
    May 2008

    Posted 12 Jul 2009 Link to this post

    That's alright Victor - it's not too terrible an inconvienience.

    This is largely a cosmetic issue - the functionality in my application is fine, and I know I can update the text property manually on selection. It's another entry on my to-do list, but it isn't urgent.
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 Jul 2009 Link to this post

    Hello Cameron Hart,

    I have added this issue to our bug database and we will address it once we get to refactoring RadMultiColumnComboBox. Thank you for the feedback.

    Regards,
    Victor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top