The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I saw an example for the gridcontrol in with a custom user control and a windows form were used as drop down popup for a cell.
I tried to port this over to the ggc, which I think should be straight forward by replacing
//2) Register your custom cell type this.gridControl1.CellModels.Add("DropDownUserControl", new DropDownUserCellModel(this.gridControl1.Model, new DropDownUser()));
//3) Set the style.CellType for the cells this.gridControl1[6, 2].CellType = "DropDownUserControl";
with...
//2) Register your custom cell type this.gridGroupingControl2.TableControl.Model.CellModels.Add("DropDownUserControl", new DropDownUserCellModel(this.gridGroupingControl2.TableControl.Model, new DropDownUser()));
ADAdministrator Syncfusion Team December 20, 2006 06:34 PM UTC
Hi James,
Please try the following code snippet and let us know if you need any further assistance.
>>>>>>>>>> this.gridGroupingControl2.TableModel.CellModels.Add("DropDownUserControl", new DropDownUserCellModel(this.gridGroupingControl2.TableModel, new DropDownUser())); this.gridGroupingControl2.TableDescriptor.Columns["DaysOfWeek"].Appearance.AnyRecordFieldCell.CellType = "DropDownUserControl"; >>>>>>>>>>
Thank you for being patience.
Best regards, Madhan
JBJames BliboDecember 21, 2006 12:32 AM UTC
sorry... did not work!
JBJames BliboDecember 21, 2006 05:47 AM UTC
my bad... i saw my mistake... i've got it working...
JBJames BliboDecember 28, 2006 05:12 AM UTC
In the DropDownUserCell class, the value is being saved to the underlying datasource in this override...
protected override bool OnSaveChanges() { string s = this.ddUser.GetValuesToString();