-
Mar 21st, 2023, 03:58 PM
#1
Thread Starter
Lively Member
[RESOLVED] Datagridview columns move when selecting rows with autosizecolumnsmode set to fill
I've created a datagridview which hides/unhides rows, but when unhiding the rows I've noted that the column and row sizes change, although neither the form or datagridview change size. The issue seems to be that the autosizecolumnsmode is set to fill, as I would like to fill the screen if the grid is maximised. The columns seem fine if the autosizecolumnsmode isn't selected, but then that prevents the columns from filling the screen when maximised. Is there a way round this?
Thanks
-
Mar 22nd, 2023, 06:33 AM
#2
Thread Starter
Lively Member
Re: Datagridview columns move when selecting rows with autosizecolumnsmode set to fil
I'm not sure what the issue was, but I have set the columns at a percentage of the width of the datagridview on cellformatting which works a lot better.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|