Datagrid scrollbar

H

Hugh Janus

Hi,

I have a datagrid that is not showing a vertical scrollbar even though
it has more rows than displayed. I cannot find the property to set
this, so after googling, i found this link:

http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q876q

My problem is that I don't know how to use it! Could someone please
explain how to implement this in my code? The simpler the better!!

TIA
Hugh
 
K

Ken Tucker [MVP]

Hi,

Whenever I resize the rows in the datagrid I had that happen. To
overcome it try resizing the grid to get the scroll bars to show. I usually
reduce the grid size by one pixel then reset it to the orginal size.

Ken
 
H

Hugh Janus

Ken said:
Hi,

Whenever I resize the rows in the datagrid I had that happen. To
overcome it try resizing the grid to get the scroll bars to show. I usually
reduce the grid size by one pixel then reset it to the orginal size.

Ken

Thanks Ken, but I have possibly hundreds (or maybe even thousands of
rows) so resizing them is not an option. Any idea on how to implement
that example to force the scrollbar for VB.NET 2003?

Hugh
 
G

Guest

Hugh,

The syncfusion code will create an control that inherits from
datagrid that allways shows the vertical scroll bar. You would need to
replace the datagrid with the new control.

Another option is resize the datagrid after you set its datasource to
force it to recalculate if the scroll bars are needed.

Ken
-----------------------
 

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