This documentation is archived and is not being maintained.

DataRepeater.ItemHeaderVisibleChanged Event

Occurs when the ItemHeaderVisible property changes.

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks (in Microsoft.VisualBasic.PowerPacks.dll)

public event EventHandler ItemHeaderVisibleChanged

Use this event to run code when the ItemHeaderVisible property is changed at run time.

For more information about how to handle events, see Consuming Events.

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 _
    ' Display the selection mode in the label.
    If DataRepeater1.ItemHeaderVisible = False Then
        SelectionModeLabel.Text = "Selected item marked by selection _
        SelectionModeLabel.Text = "Selected item marked by item _
    End If
End Sub