Datagridviewer Horizontal Scrolling

Asked

Viewed 16 times

-1

Good morning, I am setting some datagrids of the system, however, one of them will have enough columns and size in relation to screen. In other words, she needs to create a horizontal scroll, I’ve scrolled through Property and others and none of them have changed. Do you have any Property or Property set that you need to change in order for the horizontal scroll to appear or need to change something in the columns?

Thank you for your attention!

1 answer

0

Bootstrap has a CSS class called table-responsive, I use it in Grid’s so that they roll horizontally when the columns don’t fit on the screen, you can try to do so:

<div class="table-responsive">

  <%-- DataGridViewer aqui --%>

</div>

<style>

  .table-responsive {
    min-height: .01%;
    overflow-x: auto;
  }

  .table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
  }

</style>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.