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
'Declaration
Public Event ItemHeaderVisibleChanged As EventHandler
public event EventHandler ItemHeaderVisibleChanged
public:
event EventHandler^ ItemHeaderVisibleChanged {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
member ItemHeaderVisibleChanged : IEvent<EventHandler,
EventArgs>
JScript does not support events.
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 Consuming 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 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
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.";
}
}
.NET Framework Security
- 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.
See Also
Reference
Microsoft.VisualBasic.PowerPacks Namespace