Changing Column width in MulticolumnCombobox?

9 posts, 3 answers
  1. Vidhya
    Vidhya avatar
    37 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2010 Link to this post

    Hi.....

    In Mulicolumncombobox ,i have 4 Columns.i want each column in different width.there is any way to change that?
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Oct 2010 Link to this post

    Hi, 

    You can get to the columns in this way.. 
    Me.MultiColumnDropDownl.EditorControl.Columns(0).Width = value

    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Vidhya
    Vidhya avatar
    37 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2010 Link to this post

    Hi...

    Thank u..... it works very well.

    and another help...

    if it is  GridViewMultiComboBoxColumn ,how can change Column Width?                  

  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Oct 2010 Link to this post

    Hi, 

    You can just access the width property. 
    Dim col As GridViewMultiComboBoxColumn = New GridViewMultiComboBoxColumn()
    col.Width = value
    Hope that helps
    Richard
  6. Vidhya
    Vidhya avatar
    37 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2010 Link to this post

    I tried that...

    but width  of gridviewColumn only increasing.

    MyCode is:

      GridViewMultiComboBoxColumn c1 = (GridViewMultiComboBoxColumn)Grid.Columns[1];
                    c1.DataSource = dt;
                    c1.DisplayMember = "ItemName";
                    c1.ValueMember = "ItemCode";
                    c1.Width = 300;

    in this,  i want Itemname and Itemcode  column with different  width
  7. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Oct 2010 Link to this post

    Oh, I see what you mean now. You need to get to the Editor control. 
    Have a look at this link that tells you about working it and getting to the editor control

    Hope that helps
    Richard
  8. Vidhya
    Vidhya avatar
    37 posts
    Member since:
    Aug 2010

    Posted 14 Oct 2010 Link to this post

    ya thank you very much.its working correctly....
  9. francis
    francis avatar
    21 posts
    Member since:
    Oct 2010

    Posted 25 Nov 2010 Link to this post

    Hi,

    What is the name of the property to prevent the user from changing the size of the dropdown using the mouse? This is when it displays the drop ....
  10. Answer
    Vidhya
    Vidhya avatar
    37 posts
    Member since:
    Aug 2010

    Posted 25 Nov 2010 Link to this post

    Hi francis ,

    you can avoid to change the column re size  by this way,

    RadMultiColumnComboBox1.EditorControl.MasterGridViewTemplate.AllowColumnResize = false;

    Hope that helps,
    Vidhya
Back to Top
UI for WinForms is Visual Studio 2017 Ready