Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-23
4
Medium Priority
?
243 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 189 total points
ID: 10905713
0
 
LVL 23

Assisted Solution

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Integration Management Part 2
Loops Section Overview

972 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