AutoGenerate columns set to false

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    10 posts
    Member since:
    May 2008

    Posted 18 Sep 2009 Link to this post

    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
  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 18 Sep 2009 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top