# Sandbox.UI.FileGrid

A virtualized file view. Right-click for layouts or use Ctrl and the mouse wheel to change density.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)
- Modifiers: sealed

## Constructors

- [`FileGrid`](/api/Sandbox.UI.FileGrid/.ctor): Creates an empty file view in medium icon mode.

## Properties

- [`GetDetails`](/api/Sandbox.UI.FileGrid/GetDetails): Supplies size in bytes and modification time when displaying or sorting entries by these fields.
- [`GetGroupTitle`](/api/Sandbox.UI.FileGrid/GetGroupTitle): Supplies custom group titles for files and folders in tiled views.
- [`GetThumbnail`](/api/Sandbox.UI.FileGrid/GetThumbnail): Supplies a thumbnail when a file becomes visible. Return null to use its file icon.
- [`Grouping`](/api/Sandbox.UI.FileGrid/Grouping): Grouping used by icon and Tiles views.
- [`OnFileActivated`](/api/Sandbox.UI.FileGrid/OnFileActivated): Called when the user double-clicks a file or presses Enter on it.
- [`OnFilePicked`](/api/Sandbox.UI.FileGrid/OnFilePicked): Called when the user picks a file.
- [`OnFolderOpened`](/api/Sandbox.UI.FileGrid/OnFolderOpened): Called when a folder is opened.
- [`SelectedFile`](/api/Sandbox.UI.FileGrid/SelectedFile): Last picked file. Selecting a folder moves the highlight and keeps the picked path.
- [`SortColumn`](/api/Sandbox.UI.FileGrid/SortColumn): Current ordering field. Use SetSort to change it and its direction together.
- [`SortDescending`](/api/Sandbox.UI.FileGrid/SortDescending): Whether the current sort runs from highest to lowest.
- [`View`](/api/Sandbox.UI.FileGrid/View): Layout used for files and folders.

## Methods

- [`OnButtonTyped`](/api/Sandbox.UI.FileGrid/OnButtonTyped): Arrow keys, Home and End select entries. Enter opens the selection. Ctrl+Shift+1 through Ctrl+Shift+8 choose a layout.
- [`OnDeleted`](/api/Sandbox.UI.FileGrid/OnDeleted): Closes an open context menu when its file view is removed.
- [`OnMouseWheel`](/api/Sandbox.UI.FileGrid/OnMouseWheel): Changes layout with Ctrl and the mouse wheel over the header or background.
- [`SetEntries`](/api/Sandbox.UI.FileGrid/SetEntries)
- [`SetSort`](/api/Sandbox.UI.FileGrid/SetSort): Sorts the current entries and future listings. Folders precede files in both directions.
- [`Tick`](/api/Sandbox.UI.FileGrid/Tick): Scrolls keyboard selections into view once the current layout has measured its cells.
