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

# ConditionsGrid

`ConditionsGrid` composes a `SAIFPanel` and a `GridView` to present a fixed, UI-only column layout for medical-condition data (`ClaimDecision`, `DecisionDate`, `MedicalConditionDescr`, `MedicallyStationaryDate`). It performs no business-rule enforcement — it is purely a presentation binding for whatever collection the caller supplies to `Fill`*.

## Purpose
- Provide a ready-made collapsible panel + grid combination specifically shaped for medical-condition display, saving consuming pages from hand-building the column layout.
- Delegate collapse/expand behavior entirely to the hosted `SAIFPanel` via `PanelState`.

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

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `Text` | `Property Text As String` | Arbitrary label text persisted in `ViewState`; not used elsewhere in this control's own rendering logic*. |
| `PanelState` | `Public Property PanelState As PanelState` | Proxies to the hosted `SAIFPanel`'s `PanelState`, controlling whether the conditions panel is expanded or collapsed. |
| `Fill(inDataSource)` | `Public Sub Fill(ByVal inDataSource As System.Collections.CollectionBase)` | Binds the supplied collection to the hosted `GridView` and re-sorts it, populating the medical-conditions rows. |
| `SetPanelState(inPanelstate)` | `Public Sub SetPanelState(ByVal inPanelstate As PanelState)` | Sets the hosted panel's state using a strongly typed `PanelState` value. |
| `SetPanelState(inPanelState)` | `Public Sub SetPanelState(ByVal inPanelState As String)` | Sets the hosted panel's state by parsing a string into the `PanelState` enum, for callers that only have a string value on hand. |

## Inherited public members

`ConditionsGrid` inherits from `WebControl` (`System.Web.UI.WebControls`), a framework base class rather than a documented SAIF dependency library.

| Member | Signature | Purpose |
| --- | --- | --- |
| `AccessKey` | `Public Property AccessKey As String` | Keyboard shortcut character used to move focus to the rendered outer element. |
| `Attributes` | `Public ReadOnly Property Attributes As AttributeCollection` | Collection of arbitrary HTML attributes rendered on the control's outer tag. |
| `BackColor` | `Public Property BackColor As Color` | Background color applied to the rendered outer element. |
| `ForeColor` | `Public Property ForeColor As Color` | Foreground (text) color applied to the rendered outer element. |
| `BorderColor` | `Public Property BorderColor As Color` | Border color applied to the rendered outer element. |
| `BorderStyle` | `Public Property BorderStyle As BorderStyle` | Border line style applied to the rendered outer element. |
| `BorderWidth` | `Public Property BorderWidth As Unit` | Border width applied to the rendered outer element. |
| `CssClass` | `Public Property CssClass As String` | CSS class name(s) rendered on the control's outer tag. |
| `Enabled` | `Public Property Enabled As Boolean` | Controls whether the rendered element participates in enabled-state behavior. |
| `Font` | `Public ReadOnly Property Font As FontInfo` | Font styling applied to the rendered outer element. |
| `Height` | `Public Property Height As Unit` | Height of the rendered outer element. |
| `Width` | `Public Property Width As Unit` | Width of the rendered outer element. |
| `Style` | `Public ReadOnly Property Style As CssStyleCollection` | Inline CSS style declarations rendered on the outer tag. |
| `ToolTip` | `Public Property ToolTip As String` | Text shown as a native tooltip when hovering the rendered element. |

Standard `WebControl`/`Control` members (`ID`, `ClientID`, `Controls`, `Visible`, `DataBind`, `FindControl`, etc.) are not re-documented here as they are unmodified framework behavior**.

## Behavioral notes
- `CreateChildControls` builds a `SAIFPanel` titled "Medical Conditions" containing a `GridView` with a fixed set of `BoundField` columns (a hidden `MyGuid` key column plus `ClaimDecision`, `DecisionDate`, `MedicalConditionDescr`, `MedicallyStationaryDate`).
- `OnPreRender` re-writes the inner grid's `ID` attribute (a workaround for a naming-container rendering issue affecting a jQuery script) and expands the scrollable content area's height when the grid has 4 or more rows.
- The grid's column layout is UI-only presentation binding; it does not implement any claim/policy business rule*.

## Constraints and usage notes
- Callers must invoke `Fill` after data is available; the control does not auto-bind on its own lifecycle events.
- `CreateChildControls` and `Fill` both use `Try`/`Catch` blocks that silently swallow exceptions, meaning a malformed control tree could fail without a visible error**.

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

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