Monthly Archives: October 2011

How to implement CSS style to GridView Export to Excel in ASP.NET ?

Abstract: Exporting GridView to Excel is a very common task which is performed in most of the web applications. There are various techniques of exporting the GridView to excel and it highly depends on the application scenario. In this article I will demonstrate some techniques that you will find useful. Introduction: Exporting GridView to Excel […]

Continue Reading...

How To Dynamically freeze ASP.Net Gridview header using JavaScript?

Note: For jQuery Users I have created a Ready to use Plugin Scrollable GridView with Fixed Headers jQuery Plugin But the issue was that these articles had some HTML and CSS arrangements need to be done which was not a piece of cake for many users. Hence I decided to find out an easy solution to the […]

Continue Reading...

How To Make Scrollable GridView with Fixed Headers using jQuery Plugin?

HTML Markup <form id=”form1″ runat=”server”> <asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns = “false”> <Columns> <asp:BoundField DataField = “ContactName” HeaderText = “Contact Name” /> <asp:BoundField DataField = “City” HeaderText = “City” /> <asp:BoundField DataField = “Country” HeaderText = “Country” /> </Columns> </asp:GridView> </form> Applying the Scrollable Grid jQuery Plugin <script src=”Scripts/jquery-1.4.1.min.js” type=”text/javascript”></script> <script src=”Scripts/ScrollableGridPlugin.js” type=”text/javascript”></script> <script type = “text/javascript”>     $(document).ready(function () {         $(‘#<%=GridView1.ClientID %>’).Scrollable({             ScrollHeight: 300,             Width: 467         });     }); </script> Above you will notice I have referenced the jQuery and the Scrollable Grid plugin JS files. After that you […]

Continue Reading...

How To Freeze ASP.NET GridView Headers by Creating Client-Side Extenders ?

After searching the Web I came across a lot of “pure” CSS ways to freeze a header.  After researching them more they tend to rely on a lot of CSS hacks to do the job and require HTML to be structured in a custom way.  I also found a lot of custom GridView classes (another […]

Continue Reading...
www.000webhost.com