BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
this
.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Combobox;
How can i add a popupcontrol to this combobox , and custom this popupcontrol such as popupcontrol high, width , datasource
Thank for read and helping me!!!!
Query |
Response |
How can i add a popupcontrol to this combobox and custom this popupcontrol such as popupcontrol high, width , datasource |
We could able to understand your scenario and created the simple sample as per your requirement. You can add the custom controls as you want in ComboBox DropDown by adding the controls in the GridComboBoxCellRenderer.DropDownContainer and also you can customize the dropdown width and height by using e.Inner.Size property in TableControlCurrentCellShowingDropDown event.
Code example:
void gridGroupingControl1_TableControlCurrentCellShowingDropDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCurrentCellShowingDropDownEventArgs e)
{
GridComboBoxCellRenderer renderer = e.TableControl.CurrentCell.Renderer as GridComboBoxCellRenderer;
ComboBox combo = new ComboBox();
combo.DataSource = dt;
combo.DisplayMember = "Value";
combo.ValueMember = "ID";
//Remove the default control
renderer.DropDownContainer.Controls.RemoveAt(0);
//Add the GridControl in DropDown.
renderer.DropDownContainer.Controls.Add(combo);
//Change the DropDown width and Height.
e.Inner.Size = new Size(200, e.Inner.Size.Height);
} |