Hi there,
I have a UserControl which I load into a form.
On this control is a RadGridView.
Unfortunately, the automatic cell resizing does not work.
Only the heading is resized.
Can someone help me?
Thanks Udo
Here is my code to load the UserControl
Dim _objektdaten As New VB_Feuerbeschau.objekte
_objektdaten = CType(Controls("ucObjekte"), objekte)
If _objektdaten Is Nothing Then
_objektdaten = New objekte()
_objektdaten.Name = "ucObjekte"
Me.Controls.Add(_objektdaten)
_objektdaten.Dock = DockStyle.Fill
_objektdaten.BringToFront()
Else
_objektdaten.Dispose()
_objektdaten = Nothing
_objektdaten = New objekte()
_objektdaten.Name = "ucObjekte"
Me.Controls.Add(_objektdaten)
_objektdaten.Dock = DockStyle.Fill
_objektdaten.BringToFront()
'_objektdaten.rgvObjektdaten1.BestFitColumns(BestFitColumnMode.AllCells)
For Each column As GridViewDataColumn In _objektdaten.rgvObjektdaten1.Columns
column.BestFit()
Next
End If