Occurs when the ItemHeaderVisible property changes.
Assembly: Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)
The following example demonstrates how to display a selection mode label when the ItemHeaderVisible property changes. It assumes that you have a form that contains a DataRepeater control named DataRepeater1 and a Label named SelectionModeLabel.
Private Sub DataRepeater1_ItemHeaderVisibleChanged(ByVal sender As _ Object, ByVal e As System.EventArgs) Handles _ DataRepeater1.ItemHeaderVisibleChanged ' Display the selection mode in the label. If DataRepeater1.ItemHeaderVisible = False Then SelectionModeLabel.Text = "Selected item marked by selection _ rectangle." Else SelectionModeLabel.Text = "Selected item marked by item _ header." End If End Sub
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.