This is a migrated thread and some comments may be shown as answers.

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

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 20 Nov 2013, 02:43 PM
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. 

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 25 Nov 2013, 04:10 PM
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 >>
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or