Solved

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

Posted on 2004-04-23
4
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

635 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