Results 1 to 2 of 2

Thread: [RESOLVED] Datagridview columns move when selecting rows with autosizecolumnsmode set to fill

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2022
    Posts
    66

    Resolved [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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2022
    Posts
    66

    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
  •  



Click Here to Expand Forum to Full Width