Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am having trouble figuring out the right way to deal with column widths in a datagridview. I'll post 2 screenshots to help illustrate. The reason I am having trouble is that my grid is completely customizable in regards to which columns are displayed. The user can choose to only look at the 3 required columns, or they can look at 4, 5, 6, 7, or the full 8 columns if desired.

 

I do not want to use the Fill setting on the grid globally because then the columns never gets wider then the width of the grid. I do not want that because they couldn't see all the useful info.

 

I do not want all that "whitespace" on the right, however, when a smaller number of columns are selected, just because (am I right on this?) it looks unprofessional.

 

So basically I would like to see that whatever columns are selected for display, are at least as wide as the grid control, but also can be wider.

 

Thanks for any input.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...