I have a datagridview in windows form application. I have some columns to it as seen below. I set width of each column to fit exactly the data and column header. The size of the gridview at design time is 833, 342.
1- https://i.stack.imgur.com/6itRA.png
2- https://i.stack.imgur.com/PcVQb.png
3- https://i.stack.imgur.com/uTYT1.png
The problem is when I run the program, the gridview width is set to 602 and a horizontal scrollbar appears. Why is this happening although I didn't change the datagridview's AutoSizeColumnsMode ( set to none by default)
4- https://i.stack.imgur.com/PWZFR.png
Thanks