# OnFlatViewChange

The **OnFlatViewChange** event can be implemented by a [script add-in](../../../scripting/script_add-ins) to receive notification whenever the user changes the [display mode](../../../basic_concepts/the_lister/view_modes) in a tab.

| **Method Name:**   | OnFlatViewChange                                                                                                                                                       |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Argument Type:** | [**FlatViewChangeData**](../scripting_objects/flatviewchangedata)                                                                                                      |
| **Return Type:**   | _none_                                                                                                                                                                 |
| **Description:**   | The **FlatViewChangeData.tab** property identifies the tab, and the **mode** property identifies the new Flat View mode ("off", "grouped", "mixed", "mixednofolders"). |
