Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to resize form to fit DataGridView?

$
0
0

I have a form that contains dataGridView, whose coloumn are set to

dgrv1.Width =dgrv1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible)+20;

I want to make the form to automaticaly follow the width of dataGridView...

Also, on maximized, I would like it to grow in height only.

Any sugestions?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>