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

Changing Column width in MulticolumnCombobox?

8 Answers 565 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Vidhya
Top achievements
Rank 1
Vidhya asked on 12 Oct 2010, 11:14 AM
Hi.....

In Mulicolumncombobox ,i have 4 Columns.i want each column in different width.there is any way to change that?

8 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Oct 2010, 11:49 AM
Hi, 

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

Hope that helps
Richard
0
Vidhya
Top achievements
Rank 1
answered on 12 Oct 2010, 12:18 PM
Hi...

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

and another help...

if it is  GridViewMultiComboBoxColumn ,how can change Column Width?                  

0
Richard Slade
Top achievements
Rank 2
answered on 12 Oct 2010, 12:31 PM
Hi, 

You can just access the width property. 
Dim col As GridViewMultiComboBoxColumn = New GridViewMultiComboBoxColumn()
col.Width = value
Hope that helps
Richard
0
Vidhya
Top achievements
Rank 1
answered on 12 Oct 2010, 01:04 PM
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
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Oct 2010, 01:52 PM
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
0
Vidhya
Top achievements
Rank 1
answered on 14 Oct 2010, 05:39 AM
ya thank you very much.its working correctly....
0
francis
Top achievements
Rank 1
answered on 25 Nov 2010, 01:38 PM
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 ....
0
Accepted
Vidhya
Top achievements
Rank 1
answered on 26 Nov 2010, 05:25 AM
Hi francis ,

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

RadMultiColumnComboBox1.EditorControl.MasterGridViewTemplate.AllowColumnResize = false;

Hope that helps,
Vidhya
Tags
MultiColumn ComboBox
Asked by
Vidhya
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Vidhya
Top achievements
Rank 1
francis
Top achievements
Rank 1
Share this question
or