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

# ConditionsGrid

Provides a ready-made, panel-hosted `GridView` titled "Medical Conditions" that a host page fills from any `CollectionBase`, so pages do not need to hand-build grid columns and panel chrome for this recurring display [BR-V2-052](../../business-rules.md#br-v2-052-conditions-grid-always-titled-and-panel-hosted).

## Purpose
- Builds an explicitly-columned grid (never auto-generated columns) inside a `SAIFPanel` on first use [BR-V2-053](../../business-rules.md#br-v2-053-grid-columns-are-never-auto-generated).
- Sorts the caller-supplied collection before binding it to the grid [BR-V2-054](../../business-rules.md#br-v2-054-conditions-grid-fill-sorts-the-caller-supplied-collection).
- Swallows construction and fill failures silently rather than raising to the host page [BR-V2-057](../../business-rules.md#br-v2-057-construction-and-fill-failures-are-swallowed-silently).

## Context
- Namespace: `SAIF.Presentation.Web.Controls.V2`
- Assembly/package: `SAIF.Presentation.Web.Controls.V2` (packaged in `SAIF.BOF.Presentation.Web.Infragistics111.nuspec`)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Fill | `Public Sub Fill(items As System.Collections.CollectionBase)` | Sorts and binds the supplied collection to the internal grid; invoked whenever the host page has data to display. |
| CreateChildControls | `Protected Overrides Sub CreateChildControls()` | Builds the panel-hosted, explicitly-columned grid on first use [BR-V2-052](../../business-rules.md#br-v2-052-conditions-grid-always-titled-and-panel-hosted). |
| OnPreRender | `Protected Overrides Sub OnPreRender(e As EventArgs)` | Re-applies grid setup on every render pass. |

## Behavioral notes
- Any exception during construction or `Fill` is caught and discarded rather than surfaced to the caller [BR-V2-057](../../business-rules.md#br-v2-057-construction-and-fill-failures-are-swallowed-silently).

## Constraints and usage notes
- The supplied collection must be sortable by the properties the grid's columns bind to; unsupported shapes will fail silently rather than error visibly.

## Sources
- `SAIF.Presentation.Web.Controls.V2/ConditionsGrid.vb`
