AD
Administrator
Syncfusion Team
April 24, 2006 04:24 AM UTC
Hi JMS,
I could see this issue. You can workaround this issue by handling the CellButtonClicked event which occurs just before the CurrentCellShowigDropDown is triggered. You can set the size of the column here. Here is the code snippet.
if( this.gridDataBoundGrid1.Model[e.RowIndex,e.ColIndex].CellType == "GridListControl")
{
this.gridDataBoundGrid1.CurrentCell.MoveTo(e.RowIndex,e.ColIndex);
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer;
if(cr != null)
{
cr.ListControlPart.Grid.ColWidths[1] = 500;
}
}
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/ColumnHeader1_5d8260ce.zip
Please let me know if you need any further assistance.
Thanks for choosing Syncfusion Products.
Regards,
Haneef
AD
Administrator
Syncfusion Team
April 24, 2006 11:46 AM UTC
Thanks,
Works perfect.
>Hi JMS,
>
>I could see this issue. You can workaround this issue by handling the CellButtonClicked event which occurs just before the CurrentCellShowigDropDown is triggered. You can set the size of the column here. Here is the code snippet.
>
>if( this.gridDataBoundGrid1.Model[e.RowIndex,e.ColIndex].CellType == "GridListControl")
>{
> this.gridDataBoundGrid1.CurrentCell.MoveTo(e.RowIndex,e.ColIndex);
> GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
> GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer;
> if(cr != null)
> {
> cr.ListControlPart.Grid.ColWidths[1] = 500;
> }
>}
>
>Here is a sample.
>http://www.syncfusion.com/Support/user/uploads/ColumnHeader1_5d8260ce.zip
>
>Please let me know if you need any further assistance.
>
>Thanks for choosing Syncfusion Products.
>Regards,
>Haneef
>