In the DataGrid_ItemDataBound Event write the following code
VB.NET
If Not User.Identity.IsAuthenticated Then
e.Item.Cells(1).Visible = False
End If
C#
if ( ! User.Identity.IsAuthenticated )
{
e.Item.Cells[1].Visible =false;
}
In the DataGrid_ItemDataBound Event write the following code
VB.NET
If Not User.Identity.IsAuthenticated Then
e.Item.Cells(1).Visible = False
End If
C#
if ( ! User.Identity.IsAuthenticated )
{
e.Item.Cells[1].Visible =false;
}
Share with