N
N
Nikita Salnikov2020-05-13 22:17:11
C++ / C#
Nikita Salnikov, 2020-05-13 22:17:11

How to make sure that when the program is launched on another computer, the data table in the dataGridView is not cut off?

hello. please tell me how to fix this error.
5ebc475b0b385229931535.jpeg

code dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; did not help.

On one computer everything works fine. I run the program on another computer so one and a half columns are cut off.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Junecat, 2020-05-14
@nikitasalnikov

I would guess that these two computers are set to different font magnification settings (like, 100% and 125%).
To partially remove this problem, you can set the form property
AutoScaleMode = None;

V
Vladimir Korotenko, 2020-05-14
@firedragon

I would use controls from the layout tab, here's an example, take a look.
https://github.com/vkorotenko/HabrQnaNetSamples/bl...
9143f030f6.jpg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question