473,652 Members | 3,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to freeze header row of grid view in asp.net

62 New Member
Hi

i am developing asp.net web application using visual studio 2010. Code is in vb.net

I have panel which have horizontal and vertical scroll bars.
Inside panel there is grid.

i what grids header row to be freeze while scrolling panel vertically.
i googled it found many css and javascript but nothing is working for me

Please help
Oct 1 '14 #1
1 1676
Frinavale
9,735 Recognized Expert Moderator Expert
I never found a clean solution to this either.

What I ended up doing is using 2 grids/tables where one was just for the header information and the other was for the content.

This is much easier to achieve in ASP.NET MVC because you have control over what elements are used to display your content and how you want them to behave.

-Frinny
Oct 2 '14 #2

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

Similar topics

2
2226
by: Jan Mueller | last post by:
Hi all, I don't know whether this is the right group, let me know :-). I tried to open this XML file (with internal DTD) with XMLSpy 2005. I guess some of you also use this tool. http://dret.net/lectures/xml/a/4/wwww.xml I'm quite new to XML at all, so I wondered about the following. Maybe someone can tell me whether this is correct or it's an XMLSpy bug:
0
2070
by: ¿ Mahesh Kumar | last post by:
I have created a XML file as datasource which i 'm binding to a grid view control. During runtime I'm capturing items in XML file and displaying in a GRID VIEW control. but i want to remove or flush the XML file content on page load. I tried parentnode.removeall () but no use.. (1) how to clean/delete the XML file nodes on page load for using as DATA SOURCE which again i'm binding to Grid view..?? (2) and also on page refresh my gird...
1
2157
by: mimo | last post by:
Hi, I'm trying to use Stored Procedures with a Grid View and everytime I try the update and the delete stored procedures fail. By the way I am doing this through the wizard. Is there a sample somewhere on how to do this? When I type in the statements directly it works, but I really need to be able to call stored procedures. And the stored procedures work fine in query analyzer.
1
2575
by: Ed | last post by:
hi everyone, maybe someone can give me a hand here. I am working with vb 2005 and i have a gridview that i am loading data from a recordset. I have the recordset returned from the query and i am loading the data, but the problem is... this recordset is going to hold about 25,000+ records and the grid view and form "goes to sleep" and i can click on anything. I would like the user to be able to scroll the grid view and maybe min and max the...
1
2744
by: puja | last post by:
hi all, am using grid view in asp.net 2.0 . My problem is easy but can't get it to work. My grid view id = grdContract and am binding grid view using dataset My dataset returns 5 columns from sql database and I have auto generate columns = true for grdContract grdContract.DataSource = ........dataset returned by a function
2
3851
by: Umeshnath | last post by:
Hi, I have placed a grid view inside Atlas panel. On click of a button event, data is populated in the grid view, I want to add scroll bar instead of increasing the size of grid view. I have written the following code. <div id="Layer1" style="width:350px; height:140px; z-index:1;overflow-y: scroll"> But the problem was scroll bar will be there if there no data aviabale in
1
4209
by: AccessHunter | last post by:
Hi All, Is it possible to freeze header or even footer in a word document? Please help. Thanks
3
4091
by: mvmashraf | last post by:
The simplest way i follows........... step 1: place the grid view in a DIV tag... ie: eg: <div id="divdatagrid" style="overflow: scroll; width: 750px; height: 265px"> Step 2 : on load event call the following java script <script language="JavaScript" type="text/javascript"> function FreezeGridHeader()
0
1167
by: anandmani | last post by:
3) What are the authentications methods are used in the asp.net? 4) What is the use of Master page? How can we incorporate in the application? 5) Can we apply the freeze concept in the Grid View? If it is possible how u can freeze the header row in the Grid view?
0
2015
noora
by: noora | last post by:
Hi i was facing problem in my nested gridviews, and thank god i solved it, but with minor issues in the look and feel of the grid view this is an aspx code <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="True" ShowFooter="true" DataKeyNames="userid" OnRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="gridView_PageIndexChanging"> <Columns> <asp:TemplateField> ...
0
8279
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8703
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8589
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.