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

AutoGenerate columns set to false

1 Answer 101 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 18 Sep 2009, 12:16 PM
I have a multcolumn combo box that is binded to a iList returned from OpenAccess.  This part is working great, however I need to only show certain columns in the drop down, not everyone.  With RadGridView I can do the following command that will stop it from auto creating the columns, then I am free to create the specific ones that I need:

table1.MasterGridViewTemplate.AutoGenerateColumns = false;

Is there an equivalent in this control?

Also, once you select a row, how do you obtain the value for say column 3?

Thanks, Ryan

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 18 Sep 2009, 12:42 PM
Hi Ryan,

Thank you for your question.

Please refer to the following Help Article: RadMultiColumnComboBox - Overview. As you can read there, you need the EditorControl property which gives you the reference to the RadGridView in the dropdown.

Since the selection in RadMultiColumnComboBox is related to the CurrentRow of RadGridView, you can get a cell value by the CurrentRow property:
this.Text = this.radMultiColumnComboBox1.EditorControl.CurrentRow.Cells[2].Value.ToString(); 

I hope this helps. If you have additional questions, feel free to contact me.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
MultiColumn ComboBox
Asked by
Ryan
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or