Skip to content

How to create a horizontal scrollbar same in datagridview

fugio huynh

fugio huynh

Asked Sep 7, 2013, 8:36 PM EDT1 answer
Share
LinkedInX
I'm trying to create a HScrollBar same scrollbar in datagridview, when resizing the form and columns the impact HScrollbar make it work.
expect people to help, thank

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    0
    Hi fugio,

    I Suggest you to put your gridview in a Div and style your div to handle overflow, like:

    ----------------------------------------------




    -----------------------------------------------

    Remember, it only shows the scrollbar when the width/height exceeds than defined (400px for this example). height/width properties should be declared in order to let overflow work.


    Hope you got the point.

    Happy Learning :)
    0