DevExtreme v23.1 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Column and Row Indexes

The following indexes can be used in methods and callback functions:

  • Initial Column Index (or simply Column Index)
    Equals the column's index in the columns array.

  • Visible Column Index
    Depends on the column's current location in the DataGrid and changes dynamically when columns are reordered or data is grouped.

    DevExtreme HTML5 JavaScript DataGrid Visible Column Index

    Do not confuse the visible column index with the index specified using the column.visibleIndex option. The latter is used in column reordering.

  • Row Index
    Starts from 0 and increases by 1 per row including group rows. With paging, the index resets on each page.

    DevExtreme HTML5 JavaScript DataGrid Row Index