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 8648163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:15:04+00:00 2026-06-12T13:15:04+00:00

I am new to .net. I will try my best to explain the problem.

  • 0

I am new to .net. I will try my best to explain the problem. As you can see in the images the columns are resizing which i dont want to happen. I tried giving readonly property but this doesnt work.

enter image description here

I dont want this to happen

enter image description here

Please also give some suggestions to prevent user from changing the column width.

well this may be a very small issue.

Please help

Thanks in Advance.

  • 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-12T13:15:05+00:00Added an answer on June 12, 2026 at 1:15 pm

    There’s a whole set of properties to regulate this exactly.

    In code:

    dataGridView1.AllowUserToResizeColumns = false;
    
    dataGridView1.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
    

    You will be able to find them in the Properties Window(s) as well. Note the Columns (Collection) [...] item.

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

Sidebar

Related Questions

Hmm. I found this which seems promising: http://sourceforge.net/projects/mjpg-streamer/ Ok. I will try to explain
I will start new project which is based on ASP.NET MVC 3 using C#
I will try and explain exactly what I want to achieve first. Imagine two
I'm planning a new ASP.NET project that will become a product that is installed
What will be the new features available in ASP.Net 4.0?
I wonder how long will an ASP.NET (MVC) application run, when no new requests
I deployed my ASP.NET application under an existing virtual directory. The new deployment will
As a new .net/C# web begginner, I always get tripped up when I try
First tread on stack overflow, i will try to do my best.. Below, my
Lets say I have an old application which will try to load an external

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.