
# pivot focus

The focus on the pivot screen can be set with the showFocus property of the setDisplayOpyions() function.

#### Set pivot focus
  
You can display focus with the [DisplayOptions.showFocus](http://help.realgrid.com/pivotApi/types/DisplayOptions/) property and move it with the keyboard.
You can display guidelines on which rows and columns to focus on.
You can enable focus through the setDisplayOptions() function as follows:

<GridView demo='pivotguides/10-pivotFocus/01' height={600}/>

```
pivot.setDisplayOptions({showFocus:true, showFocusGuide:true});
pivot.drawView();
```

#### Pivot Focus Event

When focus moves, the [onCurrentChanged](http://help.realgrid.com/pivotApi/RealPivot/onCurrentChanged/) callback occurs.

```
pivot.onCurrentChanged = function (pivot, index) {
     console.log(index);
}
```