473,396 Members | 1,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Fixed Header to GridView

Hi,
in .net to make gridviews header fixed i wrote a function in master page
but it is working for few gridviews only, and few gridviews not displaying fixedheader, header size increasing according to the size of gridview contents

i wrote the function in master page as follows
.fixedHeader
{
overflow: auto;
height: 150px;
}
table th
{
border-width: 2px;
border-color: balck;
background-color: darkgray;
position: relative;
top: expression(this.parentNode.parentNode.
parentNode.scrollTop-1);
}
was we have to change any properties to gridview?
plz check and pass solution

Thanks
Naren
Jan 9 '08 #1
1 10581
nateraaaa
663 Expert 512MB
Well here are a few examples that I have found searching the net for C# fixed header gridview.

http://blogs.msdn.com/mattdotson/archive/2006/03/02/542613.aspx

http://www.dotnetbips.com/articles/f...203ea98d9.aspx

http://blog.radicaldevelopment.net/a...ew-header.aspx

One of these examples should help you.

Nathan
Jan 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Hans Merkl | last post by:
Hi, I was wondering if it's possible to bind the header text of a GridView column to a method of an object I have. At the moment I am setting the header texts in Page_Load but I was wondering if...
2
by: David | last post by:
I have a gridView that sometimes only shows the header and not the detail. Does anyone know how this can happen? Also, if I change the SelectCommand string using code do I need to use Databind()...
4
by: tirath | last post by:
hi, I want to display data in on my web page, in gridview in this format: Group A Group B A1 A2 B1 B2 Test 1 1 2 1 2 Test 2 1 2 1 2 Group A is header to columns A1 and A2...
5
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I have a sub in vb.net that adds extra headers to a gridview and it works very well. however, i tried to translate it to c# and i'm getting the header inserting itself over the first datarows and...
7
by: rote | last post by:
I would like to make my Gridview header dynmic i.e databinded from database.. I want my users to be able to change the headers on the fly.. Any ideas?
0
by: rawatgaurav81 | last post by:
Hi All, I had come across this problem in a web project I am doing.I am showing some data on a gridview and I had to construct additional rows of column headers dynamically i.e. I could have more...
3
by: Jimmy B | last post by:
Hello folks, Does anyone of you know any Open Source GridView Extension that has vertical Scrollbar and fixed Header? Tried to Google but didn't find any proper (because of Css). It should...
0
by: Jason Huang | last post by:
Hi, In the C#.Net 2.0 webform, I have a GridView GV1. The question is the width of the GV1's header is not fixed, sometimes if the item is long, then the header of that item just shrinks. How...
2
by: gnewsgroup | last post by:
I have a GridView, in which the header of one column changes depending on the selected value of a DropDownList outside of this GridView. I did this dynamic header through protected void...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.