473,668 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid scrollbars in wrong place

Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid
that is dynamically created on a tab. When the tab is displayed the
scrollbars for the datagrid appear inside the outline of the grid, positioned
where they would have been if the grid was at its design-time size. When you
resize the form by dragging a border the scrollbars flip to their correct
positions, but I can't find any way of doing this programmaticall y so the
thing appears correctly to start with.

I've found this problem posted on several other newsgroups but never seen a
solution posted. Has anyone else had this problem? Is it a known bug? Is
there an easy workround - if so what is it?
Oct 12 '05 #1
3 1551
Jay,

I know that Ken has add some things in this, can you look on our VB-Tips
website (I am not sure however it is probably easier for you to search for
your problem than me) (Yesterday the name of this website was
WindowFormsData GridHelp)

http://www.vb-tips.com/default.aspx

Cor

"Jay Ayliff" <Ja*******@disc ussions.microso ft.com> schreef in bericht
news:7C******** *************** ***********@mic rosoft.com...
Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid
that is dynamically created on a tab. When the tab is displayed the
scrollbars for the datagrid appear inside the outline of the grid,
positioned
where they would have been if the grid was at its design-time size. When
you
resize the form by dragging a border the scrollbars flip to their correct
positions, but I can't find any way of doing this programmaticall y so the
thing appears correctly to start with.

I've found this problem posted on several other newsgroups but never seen
a
solution posted. Has anyone else had this problem? Is it a known bug? Is
there an easy workround - if so what is it?

Oct 12 '05 #2
Hi Cor,

Thanks for the reply. I had a look at the vb-tips website. There's lots of
interesting stuff about the Datagrid, and I'm sure it will be a useful
resource for me. But I can see nothing that addresses this particular
problem. Please can you be more specific?

"Cor Ligthert [MVP]" wrote:
Jay,

I know that Ken has add some things in this, can you look on our VB-Tips
website (I am not sure however it is probably easier for you to search for
your problem than me) (Yesterday the name of this website was
WindowFormsData GridHelp)

http://www.vb-tips.com/default.aspx

Cor

"Jay Ayliff" <Ja*******@disc ussions.microso ft.com> schreef in bericht
news:7C******** *************** ***********@mic rosoft.com...
Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid
that is dynamically created on a tab. When the tab is displayed the
scrollbars for the datagrid appear inside the outline of the grid,
positioned
where they would have been if the grid was at its design-time size. When
you
resize the form by dragging a border the scrollbars flip to their correct
positions, but I can't find any way of doing this programmaticall y so the
thing appears correctly to start with.

I've found this problem posted on several other newsgroups but never seen
a
solution posted. Has anyone else had this problem? Is it a known bug? Is
there an easy workround - if so what is it?


Oct 13 '05 #3
Jay,

Can you do me a favor. Ken (and others) is much more busy with these
scrollbars than I, however he is active more especially in the vb.net
newsgroups.

Try it in the newsgroup

microsoft.publi c.dotnet.langua ges.vb

I am not sure if Ken answer direct, he is at the other side of the ditch you
know.

Cor
Oct 13 '05 #4

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

Similar topics

0
931
by: Vaughn | last post by:
In my "Test" PC (that only contains framework v1.1), the application does not display the vertical scrollbars when the amount of rows goes beyond the space reserved for the datagrid. So there's really no way for me to view the non-displayed records. The vertical scrollbar is displayed after I resize a column (apparently a refresh of the grid). This does not happen in my development PC. How come? I've also had a few other discrepancies...
5
2142
by: Jack | last post by:
How to change the colour of my datagrid scroll bars in win forms and c# Thanks Jack
2
6595
by: Jack | last post by:
Mi ingles es peor que el de Toro Sentado, espero que en español haya alguien capaz de entenderme y orientarme Trabajo con Visual Studio 2003 y C#, he creado un control derivado de datagrid y he conseguido modificar la apariencia del datagrid, colores de columnas, fuente, estilo de cabeceras de filas y columnas etc... Hasta aqui todo bien, pero soy incapaz de variar el color y estilo de los scrollbars vertical y horizontal, al parecer esto es...
1
3670
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have to problems concerning datagrids, tabcontrols and scrollbars: 1) I created a form with a TabControl. This TabControl has two TabPages: the first with a datagrid to browse database records and the second with some controls (TextBoxes, OptionButtons...) to edit these records. When the second tab is shown and I use the DataGrid's SetDataBind method, the grid scrollbars are disabled.
4
1738
by: scorpion53061 | last post by:
I have a datagrid that is switches between 2 different datasources. I set the anchor properties of my datagrid to for bottom, top, left , right. My form is set ot maximize on open. If the user resizes the form, the scrollbars that should be visible on the datagrid are not. Occasionally the scrollbars disappear when the form is maximized when
3
256
by: Jay Ayliff | last post by:
Hi All, I have a VB.NET winforms app created in VS2003. It has a datagrid that is dynamically created on a tab. When the tab is displayed the scrollbars for the datagrid appear inside the outline of the grid, positioned where they would have been if the grid was at its design-time size. When you resize the form by dragging a border the scrollbars flip to their correct positions, but I can't find any way of doing this programmatically so the...
2
1298
by: Toufik | last post by:
Hi, I've a datagrid bound on a table that exceed the horizontal size. Ive 2 problems: 1- The horizontal scrollbar is hidden sometime. 2- on the scrollbar, I can scroll if I move the bar but if I click on the right button (of the scroll bar) it doesn't scroll. Any Idea about this problem. thanks
1
1723
by: David P. Donahue | last post by:
I'm seeing a strange problem with a Windows.Forms.DataGrid in my application. When I bind it to a table in a DataSet, everything works fine. But when I bind it to a DataView, the scrollbars on the grid are disabled and only become enabled when the user either clicks a column heading to sort, or manually navigates the records with the keyboard. Is there some way I can "force" the scrollbars to be active after binding to a DataView?
1
1513
by: anujatomar | last post by:
hi I have programmed the datagrid in windows application form to display records.Now if records are many then scrollbars come automatically. this is ok.But i have also created 'Reset' button in the form to set all the fields of the form as blank ,that is , datagrid too. For this i coded it as datagrid1.datasource=nothing. This is clearing the datagrid but the space between two scrollbars in corner is left which is different from the...
0
8381
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
8799
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8586
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
8658
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
7401
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
6209
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
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.