Solved

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

Posted on 2004-04-23
4
234 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
Comment Utility
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 62 total points
Comment Utility
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

11 Experts available now in Live!

Get 1:1 Help Now