473,508 Members | 2,207 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 programmatically 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 1543
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
WindowFormsDataGridHelp)

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

Cor

"Jay Ayliff" <Ja*******@discussions.microsoft.com> schreef in bericht
news:7C**********************************@microsof t.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 programmatically 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
WindowFormsDataGridHelp)

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

Cor

"Jay Ayliff" <Ja*******@discussions.microsoft.com> schreef in bericht
news:7C**********************************@microsof t.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 programmatically 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.public.dotnet.languages.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
924
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...
5
2132
by: Jack | last post by:
How to change the colour of my datagrid scroll bars in win forms and c# Thanks Jack
2
6589
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...
1
3665
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...
4
1734
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...
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...
2
1287
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...
1
1719
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...
1
1500
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...
0
7231
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,...
0
7401
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...
1
7063
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...
0
7504
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...
0
5640
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,...
1
5059
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...
0
3211
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...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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 ...

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.