Hi,
I have a grid within a panel and I want to adjust the panel height based on the total height of the grid.
Using this code:
Me.Panel1.Height = Me.grid.TableElement.RowHeight * Me.grid.RowCount + grid.TableElement.TableHeaderHeight + 5
It seems to work ok if I use "Fluent" theme but not for "VisualStudio2012Light". I have attached a sample form.
Any explanation for this and how do I fix it?