$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
GridView Scroll Showing in ASP.NET AJAX
Home > How to > Grid Scroll Showing

Static Headers

Are you bothering when scrolling in the asp.net grid, looking at the data but not remembering what current column data stands for? Now don't worry about it, Kax.Grid provide Static Headers to resolve it. While scrolling in the asp.net gridview, the static headers will always appear at the top of the gridview, even is the scroll bar is at the endpoint.
Wanting to use this feature, just define ClientSettings.Scrolling.UseStaticHeaders property to True, you will always see the column headers while scrolling. So that you can make better read and compare to the data items in the web grid view. Try to set scrolling property on this grid scrolling free online demo.

set grid static headers in scrolling feature in asp.net ajax using c#

ASPX example code:

<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="true" />
<ClientSettings>


C# example code:

KaxGrid1.ClientSettings.Scrolling.AllowScroll = true;
KaxGrid1.ClientSettings.Scrolling.UseStaticHeaders = true;

Height and ScrollHeight

Both Height and ScrollHeight are determine the asp.net gridview's height performance, but there is something difference between them.
For height, it's the whole grid control's height.
For ScrollHeight, it depend on whether using the static headers. If enable the static headers, ScrollHeight is only for the record height in the grid. If not enable the static headers, ScrollHeight contains header height, foot height and records height in the grid.
set grid height and scrollHeight in scrolling feature in asp.net ajax

Frozen Columns

When you use static headers in asp.net grid view, you can Frozen Columns for advantage taste. For example, customers full information displayed in one web grid view, and there are too many columns in this grid, like id, name, age, phone number, company, address and so on. So the horizontal scroll bar maybe display the the bottom of the web grid, while you scrolling the bar to the end and looking at some information in the row, you may forget this customer's name. In this case, static column with customer name is needed. And KAX.Grid provide a resolution for you.

Before you use static column in asp.net, you need enable the static headers property in the design property windows. Then set ClientSettings.Scrolling.FrozenColumnsCount to the wanted value. In above case, set FrozenColumnsCount to 1. The customer name column will not scroll when the horizontal scroll bar is dragged:

set grid frozen column in scrolling style before in asp.net ajax using c#
set grid frozen column in scrolling style after in asp.net ajax using c#
ASP.NET AJAX UI Controls