---
title: PanelState
summary: API reference for PanelState.
status: draft
owner: SAIF Documentation Team
last_reviewed: 2026-08-17
library: SAIF.Presentation.Web.Controls.V2
reference_type: package
---

# PanelState

`PanelState` represents the two possible display states of a `SAIFPanel` (and, by delegation, `ConditionsGrid`), driving both the inline `display` style of the panel's content region and which collapse/expand image is shown.

## Purpose
- Provide a closed, self-documenting set of valid panel states for `SAIFPanel.PanelState` and `ConditionsGrid.PanelState`.

## Context
- Namespace: `SAIF.Presentation.Web.Controls.V2`
- Assembly/package: Compiled into `SAIF.BOF.Presentation.Web.Infragistics103`*

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `Collapsed` | `Collapsed = 0` | Indicates the panel's content region is hidden (`display: none;`) and the expand image is shown. |
| `Expanded` | `Expanded = 1` | Indicates the panel's content region is visible (`display: block;`) and the collapse image is shown; the default state. |

## Behavioral notes
- Read and written by `SAIFPanel`'s `PanelState` property, `SAIFPanel_Init` (restoring from posted state), and `ConditionsGrid.PanelState`/`SetPanelState` (proxying to a hosted `SAIFPanel`).

## Sources
- SAIF.Presentation.Web.Controls.V2\SAIFPanel.vb
