Export (0) Print
Expand All

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 _
 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

Community Additions

ADD
Show:
© 2014 Microsoft