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

Sizing GridViewMultiComboBoxColumn in gridview

1 Answer 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 20 Dec 2010, 05:33 PM
I have added a  GridViewMultiComboBoxColumn column from code behind into a gridview.  Everthng works well but the drop down is very narrow and does not display the entire contents in each row.  What is the best way to size this control so that all values are displayed in its entirety.  Some of the things I have tried did not work.

 

cboCategory.FieldName =

"Category"

 

 

 

 

 

 

'cboCategory.HeaderText = "Category"

 

 

 

 

 

cboCategory.DataSource = objDT

cboCategory.ValueMember =

"Category"

 

cboCategory.DisplayMember =

"Category"

 

 

'cboCategory.Width = 0.2 * Me.RadQueuedFiles.Width

 

cboCategory.AutoSizeMode = BestFitColumnMode.DisplayedDataCells

 

'cboCategory.BestFit()

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 20 Dec 2010, 05:40 PM
Hi John,

Have a look at the answers in this forum post which I think will help you, though let me know if you need more assistance.
regards,
Richard
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or