I have DataGridViewone that displays a limited number of lines, but no more than 5. This one DataGridViewis placed in the control DataRepeater, so it usually appears many times on the screen. I want all meshes to be resized to the size of their contents, so they do not display scrollbars if they contain 4 or 5 elements or occupy additional vertical space if there are only 1 or 2 elements.
Lattices contain only text data. These are data-bound controls, so they will need to resize if the original data source changes (I think the event DataBindingCompletewould be appropriate).
How can i achieve this? Is row counting the best option? Thanks in advance.
source
share