How to get rid of scrollbars in datagrid?



I have windows form with datagrid control.
I don't want the datagrid control to display vertical and horizontal
scrollbars.

I wonder whether there is a way to get rid of scrollbars without
deriving my own class from System::Windows::Forms::DataGrid?

The problem is that unless I derive my own class from DataGrid
I don't have access to scroll bar objects. The HorizScrollBar and
VertScrollBar
properties of VertScrollBar are protected!

Can anyone recommend alternative way to get rid of scrollbars?

Thanks
.



Relevant Pages

  • How to get rid of scrollbars in datagrid?
    ... I don't want the datagrid control to display vertical and horizontal ... I wonder whether there is a way to get rid of scrollbars without ... properties of VertScrollBar are protected! ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Colour datagrid scrollbars
    ... Both scrollbars are available as protected properties. ... to inherit from the DataGrid control. ... Use the ScrollBar's ForeColor and BackColor properties to customize its ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: supressing Microsoft HTML Object Library from launching additional windows
    ... > By the way to get rid of the scrollbars: ... > Private Sub WebBrowser_DocumentComplete(ByVal pDisp As Object, ... > cut and paste the webbrowser into the picture box and resize as needed. ...
    (microsoft.public.vb.general.discussion)