BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Query | Response |
I need to have a combo box or GridListControl in the GridGroupingControl and when this combo or GridListControl change the value I need to change the value of a particular cell How is possibile to achieve this ? | We have analyzed your reported scenario and created the simple sample. In order to change the cell value of particular cell when changing the value of combobox, TableControlCurrentCellCloseDropDown event can be used. In that event , the cell value can be changed by using Record.SetValue method. Please make use of the below code, Code example: this.gridGroupingControl1.TableControlCurrentCellCloseDropDown += new GridTableControlPopupClosedEventHandler(gridGroupingControl1_TableControlCurrentCellCloseDropDown); void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(cc.RowIndex, cc.ColIndex); if (style.TableCellIdentity.DisplayElement.Kind == Syncfusion.Grouping.DisplayElementKind.Record) { Record record = style.TableCellIdentity.DisplayElement.GetRecord(); object selectedValue = cc.Renderer.ControlText; record.SetValue("SampleData", selectedValue); } } |
How is possible to have autocomplete combo int gridGroupingControl ? | The AutoComplete mode is used to complete the corresponding value if exists when user start typing in ComboBox. this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.CellType = "ComboBox"; this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.DataSource = dt; this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.ValueMember = "ID"; this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.DisplayMember = "Value"; this.gridGroupingControl1.TableDescriptor.Columns["Description"].Appearance.AnyRecordFieldCell.AutoCompleteInEditMode = Syncfusion.Windows.Forms.Grid.GridComboSelectionOptions.AutoComplete; UG Document: |