473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1538
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
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
by: Jack | last post by:
How to change the colour of my datagrid scroll bars in win forms and c# Thanks Jack
2
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.