Force a Scrollbar in DataGrid

G

Guest

I dragged a datagrid onto a VB.Net WinForm and used the properties page and a
few lines of code to set it up, including the DataSource. No wizard setup
was used. It works fine except for one thing: there is no vertical scrollbar
even there are more lines than can be shown on the datagrid. There is plenty
room on the right for the scrollbar but it is not there. If there is a
scrollbar property for the .Net datagrid like in the VB6 DBgrid, I cannot
find it. How do I set the datagrid to have a vertical scrollbar?
 
G

Guest

I see the code in the link you gave. I copied it into my program but I
cannot get it to show the scrollbar. Can you give me a little code snippet
of how I would use this class to show a scrollbar in the datagrid on my form?

--
Price Brattin
Certified MBS/Solomon Consultant
SQLServer MCP
VB.Net Developer
 
G

Guest

I did use the class to make the grid. But it does the same thing - no
scrollbar. The scrollbar shows in design mode but not in run mode. I put a
break in the handler for the class and it runs four or five times but there
is no scrollbar showing. Is there a way to determine what set of
circumstances dictates whether the scrollbar shows?
--
Price Brattin
Certified MBS/Solomon Consultant
SQLServer MCP
VB.Net Developer
 

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