I am not sure whether you want to change the width of the column, or the width of the Drowpdown.
To change the width of a column in a GridDataBoundGrid, you do two things:
this.grid.AllowResizeToFit = false;
this.grid.Model.ColWidths[colIndex] = 300;
If you want to change the width of the DropDown in a GridListControl CellType, then you have to handle the CurrentCellShowingDropDown event, and set e.Size there. (Only the width is applicable in a GridListControl celltype, the height is determined by the DropDownRows parameter.
private void grid_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
{
GridCurrentCell cc = this.grid.CurrentCell;
if(cc.ColIndex == 5 ) //dropdown column
{
GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer;
if(cr != null)
{
//change teh height
((GridDropDownGridListControlPart)cr.ListControlPart).DropDownRows = 10;
//change the width
e.Size = new Size(400, e.Size.Height);
}
}
}