Since: FixedColumns 3.1.0

Number of columns to fix to the left of the table.
Please note - this property requires the FixedColumns extension for DataTables.


FixedColumns, by default, will fix only the left most column in place, however it is also possible to fix two or more columns in place as required by your application. The number of columns to fix in place is defined by this parameter, which is simply an integer that indicates how many columns should be fixed. FixedColumns will then use this value to fix that many visible columns to the left side of the table. Columns that are not visible will be ignored.

This option replaces the deprecated fixedColumns.leftColumns.




The number of columns on the left hand side of the table to fix in place.


  • Value: 1

The first column on the left of the table will be fixed in place.


Fixed two columns to the left of the table:

$('#example').DataTable( {
	fixedColumns: {
		left: 2
} );

Fix no columns on the left of the table:

$('#example').DataTable( {
	fixedColumns: {
		left: 0,
		right: 1
} );