AutoGenerateEditButton
I am expanding on the Chpt16 Roles and Profiles to allow a Gridview to allow editing based on the users role.
I have the edit working then I add the code below and it gives me two edit buttons. What can I do to remedy this....
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
OnLineUsers.Text = Membership.GetNumberOfUsersOnline().ToString()
If User.IsInRole("User") Then
GridView1.AutoGenerateEditButton = True
End If
End Sub
|