SAIFGrid¶
A styled GridView that always carries the library's grid CSS class, renders an accessible header when it has rows, and can wire client-side row-click behavior keyed off DataKeyField BR-V2-081.
Purpose¶
- Applies the
SAIFGridCSS class to every instance for consistent styling BR-V2-081. - Wires client-side row-click attributes, but only once
DataKeyFieldis populated BR-V2-083. - Adds an accessible header scope only when the grid actually has rows BR-V2-085.
Context¶
- Namespace:
SAIF.Presentation.Web.Controls.V2 - Assembly/package:
SAIF.Presentation.Web.Controls.V2(packaged inSAIF.BOF.Presentation.Web.Infragistics111.nuspec)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| DataKeyField | Public Property DataKeyField As String |
Field used as the per-row key for client-side row-click wiring; must be populated for row-click to activate BR-V2-083. |
| RowDataBound | Protected Overrides Sub RowDataBound(e As GridViewRowEventArgs) |
Applies zebra-striping and, when DataKeyField is set, attaches the client-side row-click handler to each row. |
| PreRender | Protected Overrides Sub OnPreRender(e As EventArgs) |
Applies the accessible header only when the grid has at least one row BR-V2-085. |
Constraints and usage notes¶
- Row-click wiring silently does nothing if
DataKeyFieldis left blank BR-V2-083.
Sources¶
SAIF.Presentation.Web.Controls.V2/SAIFGrid.vb