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.
JJJisha Joy Syncfusion Team April 29, 2009 06:21 AM UTC
Hi Martin,
You could handle the CurrentCellShowingDropDown event and can set the properties for ListControlPart. You can refer the grid inside the dropdown by using ListControlPart.Grid property and set the styles by handling PrepareViewStyleInfo event. Please see the code:
void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if (cc.Renderer.GetType() == typeof(GridDropDownGridListControlCellRenderer)) { GridDropDownGridListControlCellRenderer cr = (GridDropDownGridListControlCellRenderer)cc.Renderer; cr.ListControlPart.AllowResizeColumns = true; cr.ListControlPart.Grid.ColWidths[2] = 100; cr.ListControlPart.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);
Please let me know if you have any questions. Regards, Jisha
SUSantosh UJuly 17, 2009 04:13 PM UTC
Hi Jisha,
This is really great. Only I am not able to get the property where in I can set the dropdowngridlist control AllowNew and AllowEdit property to true.
Can you please help me. Thanks
JJJisha Joy Syncfusion Team September 8, 2009 11:35 AM UTC
Hi Santhosh,
The properties AllowNew and AllowEdit are not available for GridListControl. If your intension is to have editable drop-down grid, then this can be achieved by having drop-down gridcontrol in cell. See the following sample from our sample browser for more information: