# NxAutoSortByStateDef Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

## Inheritance

* System.Object
  * NxAutoSortByStateDef

## Syntax

```
[ValueClass]
public class NxAutoSortByStateDef : INxAutoSortByStateDef
```

## Constructors

| Name | Description |
| --- | --- |
| [NxAutoSortByStateDef()](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAutoSortByStateDef.-ctor.htm#Qlik_Engine_NxAutoSortByStateDef__ctor) |  |

## Properties

| Name | Description |
| --- | --- |
| [DisplayNumberOfRows](https://help.qlik.com/en-US/sense-developer/May2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxAutoSortByStateDef.DisplayNumberOfRows.htm#Qlik_Engine_NxAutoSortByStateDef_DisplayNumberOfRows) | This parameter applies to list objects.<br><br>If the total number of values in the list object is greater than the value set in `qDisplayNumberOfRows` , the selected lines are promoted at the top of the list object.<br><br>If `qDisplayNumberOfRows` is set to a negative value or to 0, the sort by state is disabled.<br><br>JSON property name: qDisplayNumberOfRows |