DataRepeater.ItemHeaderVisibleChanged Event
Occurs when the ItemHeaderVisible property changes.
Namespace: Microsoft.VisualBasic.PowerPacks
Assembly: Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)
Syntax
public event EventHandler ItemHeaderVisibleChanged
public:
event EventHandler^ ItemHeaderVisibleChanged {
void add(EventHandler^ value);
void remove(EventHandler^ value);
}
member ItemHeaderVisibleChanged : IEvent<EventHandler,
EventArgs>
Public Event ItemHeaderVisibleChanged As EventHandler
Remarks
Use this event to run code when the ItemHeaderVisible property is changed at run time.
For more information about how to handle events, see Handling and Raising Events.
Examples
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 void DataRepeater1_ItemHeaderVisibleChanged(object sender, System.EventArgs e)
{
// Display the selection mode in the label.
if (dataRepeater1.ItemHeaderVisible == false)
{
selectionModeLabel.Text = "Selected item marked by selection " +
"rectangle.";
}
else
{
selectionModeLabel.Text = "Selected item marked by item " +
"header.";
}
}
Private Sub DataRepeater1_ItemHeaderVisibleChanged(
) 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
See Also
ItemHeaderVisible
DataRepeater Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the DataRepeater Control (Visual Studio)
Return to top