Wrox Programmer Forums
|
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2008, 09:00 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid fixed header

Hi,

I would like to have my datagrid header fixed (in ASP.NET 1.1), when I scroll through the records.

I had tried options like "position:relative;top:auto;" in my stylesheet.Since I am using my controls and positioning,it does not work properly in my case.

Kindly suggest other options.

Thanks,
Swopna

 
Old March 22nd, 2008, 11:06 AM
Authorized User
 
Join Date: Sep 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Probably the easieast way would be to add a table above the datagrid. Write header stuff to the table. You just need to adjust column widths so that they are the same in table and datagrid.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure CSS Scrollable Table with Fixed Header rupen CSS Cascading Style Sheets 4 June 4th, 2007 08:30 PM
Fixed row in datagrid JCP General .NET 1 January 13th, 2005 05:56 PM
A fixed size Datagrid pbyrum General .NET 1 July 30th, 2004 09:56 PM
how to set row height(fixed to 1 pixe) in DataGrid yoganand03 General .NET 1 May 5th, 2004 09:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.