Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Plugins

    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies

    How to build...

    • Property Management
    • Product Catalog
    • Fundraising Dashboard
    • Real Estate Directory
    • Document Library
    • Academic Journal
    • Volunteer Management
    • Meal Tracker
    View All Guides
  • Resources

    • Blog
    • Case studies
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityMigrate
    • GravityRevisions
    • GravitySearch
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GravityExport Lite
    • GF Zero Spam

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityMigrate
      • GravityRevisions
      • GravitySearch
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GravityExport Lite
      • GF Zero Spam
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
    • Contact

    GravityView Pro

      • Showing only paid entries: filtering a View by payment status
      • (Advanced) What changed from 1.x to 2.0?
      • Field Conditional Logic
      • Field Conditional Logic doesn’t hide empty fields
      • Filtered results are not showing
      • Filtering a View using the Assignee field from Gravity Flow
      • Filtering by entry approval status
      • Filtering by the week of the year
      • Filtering by user role
      • Getting Started With the Advanced Filtering Extension
      • How to show only entries created by the currently logged-in user
      • How to show only entries from the current day, week, month, or year
      • I can’t type in a relative date
      • The :disabled_admin Merge Tag Modifier
      • Using Advanced Filtering with Multiple Forms
      • Why can’t I see the Fields dropdown?
      • Change the search parameter from “letter” to something else
      • Configuring the A-Z Filters Widget
      • The “Use this field to filter entries” setting
      • Dashboard Views: Deciding which fields to display
      • Dashboard Views: Display the View title
      • Dashboard Views: How to modify the menu icon
      • Dashboard Views: The included CSS Frameworks
      • Getting started with Dashboard Views
      • Controlling column widths and pinning columns in DataTables
      • Fixing a table stuck on “Loading data…” or showing “Invalid JSON response”
      • Buttons (DataTables Setting)
      • Changing the style of the export buttons in DataTables
      • Customizing DataTables Options in GravityView
      • DataTables Data Processing Mode (AJAX or Preloaded)
      • DataTables Excel Export – How to display URLs
      • DataTables Excel Export – How to remove HTML tags from the export
      • DataTables Field Filters
      • DataTables PDF Export – How to display images
      • DataTables PDF Export – How to display links
      • DataTables PDF Export – How to include a company logo
      • DataTables Print – How to display images and URLs
      • DataTables Setting: Save Table State
      • DataTables Views can’t be displayed using echo do_shortcode functions
      • DataTables: is it possible to exclude fields from printing?
      • Enable Auto-Update (DataTables Setting)
      • Getting Started With the DataTables Layout
      • Grouping rows by common field values
      • How to customize the “Loading data” text
      • How to customize the “No matching records found” text
      • How to customize the CSV field separator?
      • How to customize the Excel export file name
      • How to disable the “Loading data” message
      • How to disable the DataTables search box
      • How to Enable the Responsive Tables mode
      • How to translate the DataTables script
      • Is there a way to style the PDF on DataTables?
      • Known limitations of the Responsive Tables mode of DataTables
      • Multi-sorting columns in DataTables
      • My column widths aren’t being respected when using Responsive Tables
      • My DataTables View is not sorting properly
      • Removing the striped background from DataTables
      • Responsive (DataTables Setting)
      • Scroller (DataTables Setting)
      • The text inside a column is going out of the screen
      • Why doesn’t my DataTables sort correctly?
      • DIY Layout: Remove the “Go back” link
      • DIY Version 2.2 changes to HTML output
      • Getting Started With the DIY Layout
      • How do I add additional container tag default options?
      • Showing Before and After Content even when field is empty
      • Getting started with the Advanced Elementor Widget for GravityView
      • Understanding the “Show Debug Output” option
      • Getting Started With the Featured Entries Extension
      • How do I change the design of a Featured entry?
      • How to always display featured entries, regardless of search results
      • How to feature an entry using PHP
      • How to visually highlight featured entries in the Recent Entries widget
      • Show only Featured Entries in the Recent Entries widget
      • Allowing users to delete entries when using a Magic Link
      • Fields not appearing in Edit Entry when using Magic Links?
      • Getting Started with Magic Links
      • Magic Links Filters
      • Preserving Magic Links parameters on password-protected Views
      • The {gv_magic_links} Merge Tag
      • About custom map icons or markers
      • About GravityView Maps geocoding
      • Adding your Google Maps API Key into Divi
      • Adding your Google Maps API Key into Premium Addons for Elementor
      • Adding your Google Maps API Key into Ultimate Addons for Elementor
      • Associating a custom map pin icon (marker) with a field value
      • Can I use Maps to autocomplete addresses on my form?
      • Configuring info boxes in GravityView Maps
      • Enabling autocomplete for the Gravity Forms Address field
      • Enabling the REST API access
      • Error: Google Maps API warning: NoApiKeys
      • Error: This page can’t load Google Maps correctly
      • Filter the address field: gravityview/maps/marker/address
      • Fixing a conflict with UberMenu plugin
      • Getting Started With the Maps Layout
      • Google Maps Javascript API Error “RefererNotAllowedMapError”
      • Granting Google Cloud Access to Support
      • How can I make the marker link to open in a new tab?
      • How can I pull the address from a field type that is not Address?
      • How do I display only the Map? I don’t want to display the entries under the Map.
      • How to enable and configure map marker clustering
      • How to enable radius search
      • How to hide map elements using CSS
      • How to override geocoding coordinates
      • How to show markers from multiple address fields on a map
      • Is it possible to style the map?
      • My map is gray and there are no entry markers
      • Radius Search: Request Location
      • Set Up Google Maps in GravityView Maps
      • Support for OpenStreetMap or other map providers
      • Using a latitude and longitude fields to position the map markers
      • What are “Search as map moves” and “Redo search in map”?
      • Why aren’t some of my entries showing up on the map?
      • [Advanced] How to modify Ratings & Reviews entry comment titles
      • Creating a review/voting system by embedding a form into a single entry (short)
      • How to change the description of the Star Rating titles on hover
      • How to disable email notifications for reviews
      • How to Setup the Ratings & Reviews Extension
      • Issue: GravityView Single Entry page only shows “Leave a Reply”
      • Ratings & Reviews Anonymous Reviews
      • Ratings & Reviews Hooks
      • Ratings & Reviews Merge Tags
      • Getting Started With the Social Sharing & SEO Extension
      • How to fix Open Graph meta tags for single entry pages when using the WordPress SEO plugin
      • Setting up SEO for Views with Yoast SEO
      • Setting up sharing buttons with JetPack
      • Getting started with PDF for GravityView
      • Using unions in Multiple Forms
      • Getting Started With Multiple Forms
      • How to connect two forms using the Nested Forms field with the Multiple Forms
      • I don’t see the option to join multiple forms
      • Known limitations of Multiple Forms
      • Multiple Forms: How the “Strict Entry Match” setting works
      • Multiple Forms: Searching entries
      • Multiple Forms: Unions are now supported
      • Using Advanced Filtering with Multiple Forms
      • Why I’m seeing duplicated records on my View?
    • Home
    • Docs
    • GravityView Pro
    • DataTables Layout
    • Controlling column widths and pinning columns in DataTables

    Controlling column widths and pinning columns in DataTables

    Estimated reading: 2 minutes

    Updated on August 2, 2026

    A DataTables View gives every column an equal-ish share of the table by default, sized to whatever the data happens to be. Three field settings let you take over: how wide a column is, whether it stays on screen while the table scrolls sideways, and how early it disappears on a narrow screen.

    All three live in the same place. In the View editor, hover a field in Table Columns and click the gear icon.

    The field settings panel showing Percent Width set to 24, Pin Column set to Pin to left edge, and Responsive Visibility set to Automatic
    Percent Width, Pin Column and Responsive Visibility are set per field, not per View.

    Percent Width #

    Enter a number from 1 to 100. It is a share of the table, not a pixel measurement, so a column set to 25 takes a quarter of the table’s width whatever the visitor’s screen size.

    Leave a field blank and it sizes to its content. If you set widths on some columns and not others, the ones you left blank share whatever width is left over, evenly.

    When your percentages do not add up to 100

    • Under 100, with blank columns: the blank columns divide the remainder between them.
    • Under 100, with no blank columns: your columns are scaled up proportionally to fill the table. The ratios you set are kept.
    • Over 100: the same thing in reverse. Setting 60, 60 and 60 gives you three equal columns, because the ratios are what matter, not the total.

    When a column is too narrow for what is in it

    Your percentages are followed exactly, which means you can ask for a column narrower than the values it holds. Rather than splitting a date across two lines, the table widens itself enough to fit and the page scrolls sideways. Your ratios are unchanged: each column still takes its share, of a wider table.

    There is a limit to this. A single very long value, such as a full URL, is left to wrap instead, because widening the table enough to fit it would leave every other column mostly empty.

    If you would rather a column never scrolled, give it a larger percentage or shorten what it displays.

    Pin Column #

    Pinning keeps a column on screen while the rest of the table scrolls sideways, so the row you are reading stays identifiable. It is most useful on a name or reference column.

    A table scrolled horizontally: the Client column stays at the left edge and Account Manager stays at the right, while the Project column has scrolled out of view
    Client is pinned left and Account Manager right. Project has scrolled out of view between them.

    Choose Pin to left edge or Pin to right edge. You can pin several columns to the same edge, and you can pin to both edges at once.

    A pinned column has to reach the edge of the table. Pinning the third of five columns to the left does nothing unless the first two are pinned as well, because there is no way to hold it in place without holding everything to its left. The View editor warns you when a pin cannot take effect.

    Responsive Visibility #

    This applies only when Responsive is enabled for the View. Responsive mode hides columns on narrow screens and moves them into an expandable row, and this setting decides the order columns are given up in.

    • Automatic leaves the decision to the table.
    • Hide first gives this column up before the others.
    • Hide last keeps it as long as possible.
    • Never hide keeps it on screen at every size.

    Responsive and pinning do not combine. They solve the same problem in opposite ways: one hides columns to fit the screen, the other keeps the table wide and scrolls it. With Responsive enabled, a pinned column is treated as one to keep visible longest rather than one to freeze in place.

    Things worth knowing #

    • Widths apply to the table columns only. They do not affect the single entry page.
    • A View with no widths set behaves exactly as it did before, sized to its content.
    • Long unbroken values such as URLs wrap onto several lines rather than being cut off.
    • Percent Width, Pin Column and Responsive Visibility require DataTables 3.11 or newer.
    Still stuck? How can we help?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous écrire dans votre langue maternelle si c’est plus facile pour vous—nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta más fácil; ¡nosotros nos encargamos de la traducción!
    Sie können uns in Ihrer Muttersprache schreiben, wenn das für Sie einfacher ist – wir kümmern uns um die Übersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is — wij zorgen voor de vertaling!
    Du kan skrive til oss på ditt morsmål hvis det er enklere for deg — vi tar oss av oversettelsen!
    Du kan skriva till oss på ditt modersmål om det är lättare för dig — vi tar hand om översättningen!
    Você pode nos escrever em seu idioma nativo se for mais fácil para você — nós cuidaremos da tradução!
    Puoi scriverci nella tua lingua madre se ti è più facile — penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Stay informed?

      Was this page helpful?

      Table Of Contents
      • Percent Width
      • Pin Column
      • Responsive Visibility
      • Things worth knowing
      GravityKit
      • How to Build It
      • GravityKit vs competitors
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Privacy Policy
      • Terms of Service (“Terms”)
      I am a...
      • Nonprofit
      • Web agency
      • Small business owner
      • Web developer
      • Educational institution
      • WordPress freelancer
      • Startup founder
      • One-person agency
      Get notified of updates.

      We’re constantly improving GravityKit. Fill out your email below and we’ll notify you anytime major updates drop.

      • Facebook
      • Twitter
      • Mastodon
      GravityKit is a Gravity Forms Certified Developer.

      Copyright © 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.

      Floaty, GravityKit's astronaut mascot, relaxing on a beach lounger

      Gravity Summer Sale ☀️

      50% off our entire toolkit • From 25% off for the rest of the community

      Shop the Sale