473,791 Members | 3,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data Grid Is Vertical Scroll Visible

Hi,

I have a DataGrid based on a DataView

I am trying to determine if the Vertical Scroll Bar is visible?

I can't find a property to return its state.
Is there a way to do this and if so could you point me in the right
direction?

Thanks

Doug
Nov 21 '05 #1
2 2383
Hi,

For Each ctrl As Control In DataGrid1.Contr ols

If TypeOf ctrl Is VScrollBar Then

Trace.WriteLine (ctrl.Visible)

End If

Next

Ken

-----------------------

"Doug Bell" <dug@bigpond> wrote in message
news:uF******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I have a DataGrid based on a DataView

I am trying to determine if the Vertical Scroll Bar is visible?

I can't find a property to return its state.
Is there a way to do this and if so could you point me in the right
direction?

Thanks

Doug

Nov 21 '05 #2
Thanks Ken

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi,

For Each ctrl As Control In DataGrid1.Contr ols

If TypeOf ctrl Is VScrollBar Then

Trace.WriteLine (ctrl.Visible)

End If

Next

Ken

-----------------------

"Doug Bell" <dug@bigpond> wrote in message
news:uF******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I have a DataGrid based on a DataView

I am trying to determine if the Vertical Scroll Bar is visible?

I can't find a property to return its state.
Is there a way to do this and if so could you point me in the right
direction?

Thanks

Doug

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1473
by: Das | last post by:
Hi I have set a HyperLink column in the data grid. When that hyperlink column is clicked then I make that row selected. But the problem is that When there are more records in the grid. It means if I have to scroll down the Page to select that Item in the Data Grid. then That Item is selected that is fine but the page scrolls up & that item is no more visible I want that that Item should be visible to the user Thanks in advace Das
3
2221
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of columns. & depending on what the user enters, the data grid can grow very large. So to avoid scrolling the whole page, I just want the data grid to be scrollable. For this I used the <div> tags around the data grid, <div...
2
1702
by: Stephen Costanzo | last post by:
I have noticed that if I have a data grid with scrollbars and scroll it off screen and back again that the scroll bars are missing. Thinking that this was just a repaint issue, I attempted to click on the region where the scroll bars would have existed to try to scroll - thereby causing the bars to repaint. No joy there. While I can call the datagrid's invalidate function each time I manually add a row to the underlying table, this...
3
5038
by: EdB | last post by:
How do I capture the position of the vertical scroll bar? I present the grid to a user, they select an item, and I pop up an edit window. When they are done, I need to refresh the grid (editing cell contents of the grid is not an option here). when I refresh the grid, the scroll bar is back at the top. I want it where it was. I can capture the scroll event, but there doesn't seem to be a property of the scroll bar for the position...
0
1042
by: Devesh | last post by:
Hi, I want to display some parameters & their value in Same data grid as shown Parameter | Value | Parameter | Value |Parameter | Value So please suggest me the way to Split grid which will have first row as above & Rest row will contain Param Name & Values. These all parameter & values, i am having in Data set. Another problem is that since parameters are more .So in Data grid vertical Scroll bar is coming. When we...
0
1523
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical scroll bar assumes that all row heights are the same, as the designers of the datagrid seemed to not want to cater for the fact that a datagrid could be made multi line. This results in the scroll down functionality being completely wrong -
2
2046
by: akm | last post by:
I am facing an issue with the vertical scroll bar. Actually i am using data grid to display the data in my tables, and also i am using the same view form to diplay the data for different tables. When i display the data in table1 it shows all the data with the vertical scroll bar but when i display Table1 again after displaying the Table2 which have just one row of data and hence no vertical scroll bar, the vertical scroll bar of the table1 also...
2
3137
by: jvdub22 | last post by:
I am currently using a VB 6 MS Data Grid Control bound to an SQL express data base. My grid has 20 visible rows when I load my form, when I scroll down and select a row higher than 20 the grid refers back to the corresponding row in the original 1-20. For example I can select any row less than 20 just fine, but if I select row 22 the grid will move me to row 2 or if select row 58 the grid moves me to row 18. I've read that this behavior is...
4
2567
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi All, I have an application that fetch data thru a store proc and display in a datagrid, but after successful execution of proc the data grid is not visible.Please go thru the following code and plz let me know what is missing.The data grid propertiy "Visible is true". try { OracleDataAccess oracleDA = new OracleDataAccess("Data
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9517
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.