Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8549611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:45:20+00:00 2026-06-11T13:45:20+00:00

With this code: const int COMMENTS_COLUMN_DESIRED_WIDTH = 412; … dgv.Columns[COMMENTS_COLUMN].DefaultCellStyle.WrapMode = DataGridViewTriState.True; dgv.Columns[COMMENTS_COLUMN].MinimumWidth =

  • 0

With this code:

const int COMMENTS_COLUMN_DESIRED_WIDTH = 412;
...
dgv.Columns[COMMENTS_COLUMN].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
                dgv.Columns[COMMENTS_COLUMN].MinimumWidth = COMMENTS_COLUMN_DESIRED_WIDTH;

…the COMMENTS column wraps, as I want it to, but after a width of maybe 120 pixels, nowhere near 412. Why is it wrapping before it hits its MinimumWidth value?

The data does not contain line breaks where the wrap is occurring.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:45:22+00:00Added an answer on June 11, 2026 at 1:45 pm

    I changed AutoSizeColumnsMode from “AllCells” to “None” and that does the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I saw this code snippet const volatile int * volatile * const X; but
I had this code: int foo(void){ return 1; } int main(void){ static const int
With this code: private void dataGridView1_RowEnter(object sender, DataGridViewCellEventArgs e) { const int TICKETSOURCE_COLUMN =
I have spotted something like this in code: void foo(IList<int>^ const & list )
This code: const string LabelToFind = goTo considered Harmful; using (var file = new
Consider this code: const char* someFun() { // ... some stuff return Some text!!
I used this code: const char *propName = property_getName(property); NSString *propertyName = [NSString stringWithCString:propName];
So basically this code: class A { }; class B { B (const B&
I am working on const-correctness of my code and just wondered why this code
I have code that looks like this: class T {}; class container { const

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.