forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeaderVisible.vb
25 lines (21 loc) · 1008 Bytes
/
HeaderVisible.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Public Class HeaderVisible
Private Sub CustomersBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustomersBindingNavigatorSaveItem.Click
Me.Validate()
Me.CustomersBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.NorthwndDataSet)
End Sub
Private Sub HeaderVisible_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'NorthwndDataSet.Customers' table. You can move, or remove it, as needed.
Me.CustomersTableAdapter.Fill(Me.NorthwndDataSet.Customers)
End Sub
' <Snippet1>
Private Sub Button1_Click() Handles Button1.Click
' Switch the visibility of the item header.
If DataRepeater1.ItemHeaderVisible = True Then
DataRepeater1.ItemHeaderVisible = False
Else
DataRepeater1.ItemHeaderVisible = True
End If
End Sub
' </Snippet1>
End Class