Solved

how can i force the scrollbars on the datagrid to be always visible..

Posted on 2004-04-23
4
235 Views
Last Modified: 2012-05-04
how can i force the scrollbars on the datagrid to be always visible.. i tried to do many things, but it always seems to hide after loading in the entire data from the datasource.

i tried this code, and also tried to use reflection, but none seems to work.

foreach(Control c in this.Controls)
{
   Type aType = c.GetType();
   if(aType == typeof(System.Windows.Forms.HScrollBar))
            ((System.Windows.Forms.HScrollBar)c).Visible = true;
   else if(aType == typeof(System.Windows.Forms.VScrollBar))
            ((System.Windows.Forms.VScrollBar)c).Visible = true;
}

thanks in advance
0
Comment
Question by:astaga
4 Comments
 
LVL 1

Accepted Solution

by:
heboh earned 63 total points
ID: 10905713
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 62 total points
ID: 10907013
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XML & .net 5 41
Connecting database in Xamarin? 6 52
c# LinkButton OnClientClick 2 34
Combine two datatables into one based on a value from second datatable 4 33
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now