Link to home
Start Free TrialLog in
Avatar of rwheeler23
rwheeler23Flag for United States of America

asked on

Datagriview changes width slightly even when column widths are set.

I have a datagridview that contains 5 columns. I have set the width of each column. 90% of the time when the grid is displayed it fits perfectly with no horizontal slider. The other 10% of the time it is either slightly too narrow or too wide so I get gray space or the slider. I think this is happening when there is too much or too little text in the columns and the grid is trying to proportionately space the columns. Is there a way to prevent this? Is there some property of the dgv I can set to insure the grid is always filled?
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rwheeler23

ASKER

Thanks, I must have missed that property.