//Used before update panel using 'ScriptManager' control darg and drop on your source page
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
//using updatepanel
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView5" runat="server">
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
Used updatepanel outside gridview , the gridview doesnot reload or blink on click sorting and paging