• Skip to primary navigation
  • Skip to main content
pythonGrid

pythonGrid

Datagrid for Python Web Frameworks

  • Home
  • Docs
  • Demo
  • Download
  • Contact

docs

set_col_width()

pythongridstg · April 28, 2020 ·

  • Parameters:
    • col_name: column name
    • width: width
  • Description:
    • Specify column width in pixels. The width should be an integer value.
  • Remark:
    •  pythonGrid will automatically resize the column width based on its content during page load. Users can also double-click a column divider to resize a column.

Example:

grid.set_col_width('comments', 600)

set_col_align()

pythongridstg · April 28, 2020 ·

  • Parameters:
    • col_name: column name
    • align: alignment direction: “left”, “center”, or “right”.
  • Description:
    • The horizontal alignment of text in a column. The default alignment value is left.

Example:

grid.set_col_align('status', 'center')

enable_pagecount()

pythongridstg · April 28, 2020 ·

  • Parameters:
    • page_count: boolean: true or false.
  • Description:
    • Enable page count in the pager. Default to true.
  • Remark:
    • Set to false to optimize performance for very large (e.g. millions) database table.

Example:

grid.enable_pagecount(True)

enable_rownumbers()

pythongridstg · April 28, 2020 ·

  • Parameters:
    • has_rownumbers: boolean value indicating whether row number is displayed.
  • Description:
    • Display row numbers before each row.

Example:

grid.enable_rownumbers(True)

enable_search()

pythongridstg · April 28, 2020 ·

  • Parameter(s):
    • can_search: boolean. When set to true, the search icon displays in the footer, and the integrated search is toggled when the icon is clicked.
  • Description:
    • The integrated search provides an intuitive interface for searching data within the datagrid. The user can search one or multiple fields. No additional programming is required. The datagrid is automatically refreshed and repopulated with results returned from the db.
  • Remark:
    • The integrated search is toggle off by default. Click on the Search button in the footer to toggle on the integrated search.

Exmaple:

grid.enable_search(True)
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to Next Page »

pythonGrid

pythonGrid is a free and open-source datagrid library made for Python web framework

Copyright © 2025 · pythonGrid | privacy policy

  • Demo
  • Documentation
  • Download
  • T&C
  • EULA
  • Contact Us