Datagrid scrollbars in wrong place

G

Guest

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?
 
C

Cor Ligthert [MVP]

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
 
G

Guest

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?
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top