AD
Administrator
Syncfusion Team
December 21, 2006 01:11 PM UTC
Hi James,
This can be achieved by handling the TableControlCellClick event. In the event, you can check for the comboBox celltype and cancel the cell click event. And you can hide the comboBox button The following is the code snippet
>>>>>>>>>>>>>Code Snippet<<<<<<<<<<<<<
//this.gridGroupingControl1.TableDescriptor.Columns[“ColumnName”].Appearance.AnyRecordFieldCell.CellType = "ComboBox"; //this.gridGroupingControl1.TableDescriptor.Columns[“ColumnName”].Appearance.AnyRecordFieldCell.ShowButtons = GridShowButtons.Hide;
//this.gridGroupingControl1.TableControlCellClick += new GridTableControlCellClickEventHandler(gridGroupingControl1_TableControlCellClick);
void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
GridCurrentCell cc = e.TableControl.CurrentCell;
if (cc.Renderer.StyleInfo.CellType == GridCellTypeName.ComboBox)
e.Inner.Cancel = true;
}
>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<
Have a nice day.
Best regards,
Madhan