Private Sub HideFile(ByVal strFilePath As String)
Try
Dim strFInfo As New FileInfo(strFilePath)
strFInfo.Attributes = FileAttributes.Hidden
MessageBox.Show("Successfully Applied.")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Introduction Paging and Sorting are most commonly used features of ASP.Net GridView. And it is very easy to implement in GridView with small lines of code. Here I am going to demonstrate how to use Paging and Sorting in GridView for better use of data display.