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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:09:48+00:00 2026-06-12T11:09:48+00:00

Hi I have a control which includes 3 grid controls, they are gridControl1, gridControl2

  • 0

Hi I have a control which includes 3 grid controls, they are gridControl1, gridControl2 and gridControl3 and the views are gridView1, gridView2 and gridView3.

I have 3 buttons, when click Button1, gridControl1 and gridView1 display; click Button2, gridControl2 and gridView2 display; click Button3, gridControl3 and gridView3 display.

I hope there could be a horizontal scrollbar displays as well with each grid control/grid view. And hence I have below code for each gridview:

gridView1.OptionsView.columnAutoWidth = false;
gridView1.ScrollStyle = ScrollStyleFlags.LiveHorzScroll;
gridView1.HorzScrollVisibility = ScrollVisibility.Always; // or ScrollVisibility.Auto doesn't work neither; or remove this line, doesn't work neither

Then I have:

this.Controls.Add(this.gridControl1);
this.Controls.Add(this.gridControl2);
this.Controls.Add(this.gridControl3);
this.AutoScroll = true;

With gridView1.HorzScrollVisibility = ScrollVisibility.Always I can see the scrollbar but it is not enabled and my columns are still auto adjust the width so the total width doesn’t exceed the grid width. With this gridView1.HorzScrollVisibility sets as other values, the horizontal scrollbar is not visible at all.

Do I need to set column min width to make this scrollbar works? Or anything I may miss and hence it doesn’t work properly?
Thanks!

  • 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-12T11:09:49+00:00Added an answer on June 12, 2026 at 11:09 am

    I think what you need to do is to set this to false :

    gridView1.OptionsView.ColumnAutoWidth = false;
    gridView2.OptionsView.ColumnAutoWidth = false;
    gridView3.OptionsView.ColumnAutoWidth = false;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have a usercontrol which includes some JavaScript, if I add the control
I have a custom control which includes a property of the following definition: [PersistenceMode(PersistenceMode.InnerProperty)]
I have a debian/control file which includes: Build-Depends: ... libboost1.35-dev, libboost-date-time1.35-dev, ... This stops
I am using Ajax tab control, which includes grids in each tab. The grid
I have an ASP.NET page which includes markup and 3rd party controls (in this
I have problem. I have site.master which includes a couple of user controls. Now
I have a control which has a button on it. All the button does
I have a control which is mounted within a form. I need to implement
Have a gridview control which will show X amount of rows. I want to
I have a custom control which displays results of some operations. It is hidden

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.