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.
Hello,
I am using the GridControl v3.201.1.515. I have a cell type of "GridListControl" where I am dropping down
a GridListControl. The datasource for dropped down list is a custom object collection, and to be able to
control the column order I had to make this a virtual grid. Every thing works great, except I am unable
to control the column widths of the dropped down grid.
Using the code below I get close (except the last column is huge), but the problem is for everytime the grid
is dropped down it keeps growing and growing in width. Note: it does not do this if the scrollbar is not displayed when
the number of rows is less than or equal to the number of rows the grid shows.
'''' CurrentCellShowingDropDown event handler
Private Sub _showDropDown(ByVal e As Syncfusion.Windows.Forms.Grid.GridCurrentCellShowingDropDownEventArgs)
Dim cr As GridDropDownGridListControlCellRenderer = DirectCast(CurrentCellRenderer(), GridDropDownGridListControlCellRenderer)
cr.ListControlPart.ShowColumnHeader = False
'''' Remove the handlers first.
Dim grid As GridListControl = cr.ListControlPart
grid.BeginUpdate()
'''' REmove event handlers
_resetDropDownGrid(cr.ListControlPart)
'''' Add event handlers
_addDropDownGridHandlers(grid)
grid.EndUpdate()
cr.ListControlPart.Grid.ResetVolatileData()
grid.Grid.ColWidths.ResizeToFit(GridRangeInfo.Table)
cr.ListControlPart.Grid.Refresh()
End Sub
Any help would be greatly appreciated.
Thanks,
Per