How to add columns to MultiComboBoxColumn within GridView in designer, unbound

2 posts, 0 answers
  1. John
    John avatar
    1 posts
    Member since:
    Nov 2013

    Posted 20 Nov 2013 Link to this post

    Hi, I have a RadGridViewTable set up in my designer, which contains a MultiComboBoxColumn and I was wondering how I add individual Columns to that MultiComboBoxColumn, manually (as i'm not using data binding) either within the code or through the designer (C#)?

    Thanks. 
  2. Ralitsa
    Admin
    Ralitsa avatar
    190 posts

    Posted 25 Nov 2013 Link to this post

    Hi John,

    Thank you for writing.

    You can not add columns in GridViewMultiComboBoxColumn through designer or Property builder.  Although it is possible to access the editor in the CellEditorInitialized event and add columns and rows with data in it, this approach is not recommended, as the cells will display the value from the first column. 

    The recommended approach is to have your data predifined in a DataTable and bind the column to this member. As a result, you can use the DisplayMember and ValueMember properties to customize the cells appearance and behavior.

    I attached a sample project which demonstrates both ways. If you think that this solution does not solve your issue, please provide me with more detailed explanation about your case and I will do my best to answer you.

    Let me know if I can assist you further.

    Regards,
    Ralitsa
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top