hide horizontal scrollbar from datagridview in vb.net RRS feed

  • Question

  • I need to hide horizontal scrollbar from datagridview 



    Monday, May 10, 2010 10:25 AM


  • Hi .NetCoder,

    You can set DataGridView's ScrollBars property or you can set AutoSizeColumnsMode property, for example: 

    DataGridView1.ScrollBars = ScrollBars.Vertical


    DataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill

    Best regards,
    Alex Liang

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by Alex Liang Monday, May 17, 2010 8:31 AM
    Wednesday, May 12, 2010 6:25 AM