473,569 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling the contents in a data grid

11 New Member
the contents in the datagrid should be scrolled, with the header freezed...
that means when ever the web page is opened the contents should scroll automatically,e xcept the header
plzz help
Aug 21 '06 #1
4 3064
rupalirane07
9 New Member
<style type="text/css">.DataGridF ixedHeader { BACKGROUND: none transparent scroll repeat 0% 0%; POSITION: relative; ; TOP: expression(this .offsetParent.s crollTop) }
</style>

Add the Above Line in HTML page of ur form after the following line:

<meta content="http://schemas.microso ft.com/intellisense/ie5" name="vs_target Schema">

after this come to Design view and click on Datagrid and go to properties and then HeaderStyle tag-type name of CssClass-DataGridFixedHe ader

and now run the page this ll be much helpful
Aug 21 '07 #2
dip_developer
648 Recognized Expert Contributor
<style type="text/css">.DataGridF ixedHeader { BACKGROUND: none transparent scroll repeat 0% 0%; POSITION: relative; ; TOP: expression(this .offsetParent.s crollTop) }
</style>

Add the Above Line in HTML page of ur form after the following line:

<meta content="http://schemas.microso ft.com/intellisense/ie5" name="vs_target Schema">

after this come to Design view and click on Datagrid and go to properties and then HeaderStyle tag-type name of CssClass-DataGridFixedHe ader

and now run the page this ll be much helpful
rupali's code...
TOP: expression(this .offsetParent.s crollTop)
is more or less good for fixed datagrid header.......
the only problem with this I have seen is whenever there is DropDownList control in the datagrid the Dropdown comes over the header....just check that.......
Aug 21 '07 #3
rupalirane07
9 New Member
if that is the problem then do this:

if u r using dropdownlist then u must be using Template Column.
then right clik on Datagrid -Edit Template -go to column[n] n means watever column comes in my case it is column[4] then clik on itemtemplate dropdownlist-properties-css field is there then give the name DataGridFixedHe ader and then end Template editing. and run and check.

Try this it wont comes over the header
rupali's code...
TOP: expression(this .offsetParent.s crollTop)
is more or less good for fixed datagrid header.......
the only problem with this I have seen is whenever there is DropDownList control in the datagrid the Dropdown comes over the header....just check that.......
Aug 22 '07 #4
dip_developer
648 Recognized Expert Contributor
if that is the problem then do this:

if u r using dropdownlist then u must be using Template Column.
then right clik on Datagrid -Edit Template -go to column[n] n means watever column comes in my case it is column[4] then clik on itemtemplate dropdownlist-properties-css field is there then give the name DataGridFixedHe ader and then end Template editing. and run and check.

Try this it wont comes over the header
Thanks Rupali......its fascinating to learn something new........I will try it.....thanks for your suggestion..... ..
Aug 22 '07 #5

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

Similar topics

1
5606
by: dschectman | last post by:
I have an interesting issue. I need to implement a dynamic table to mimic a select list. Each time you double click from the master list, a row is added to the list of selected items. The list of selected items has a column header and differentiation between odd and even rows. This part is trivial. Clients have the ability to re-order the...
1
3599
by: Wesman | last post by:
Threads, textboxes and scrolling Thanks in advance for any information on this matter. I have run into a small richtextbox, scrolling and tread issue. Which has me totally confused. Instead of trying to explain it I wrote some small C# code to demonstrate the fact that in the threaded version the textbox simple doesn't scroll like it...
1
4977
by: john sutor | last post by:
Does anyone know if you can display vertical scroll or horizontal scroll bars on the datagrid ???
6
1539
by: Jon Paal | last post by:
an excellent working solution for scrolling tables appears at this link http://www.litotes.demon.co.uk/example_scripts/tableScroll.html author has no contact page, but I have a question about the display of the table. the top left corner in the table grid is hidden from being displayed. I have tried to figure out where it is being hidden...
3
2706
by: Brian Tkatch | last post by:
I have a form with two DataGrids, which are kept in sync manually via Stored PROCEDURE calls. That is, when a record is selected on the first grid, a stored PROCEDURE is CALLed to Fill() the next second DataGrid's DataSource. All that works very well. And, when there are no records to display, it is simply left blank. My issue is that when...
7
3095
by: Arne Beruldsen | last post by:
in vbnet2005 I have a datagridview. When the user clicks on a row...I would like the contents of certain cells to populate a textbox. To do this...i need to be able to refer to the row and colums...something like textbox = contents (rx, cx) How can I refer to the cell contents? Thanks....
1
1835
by: Noman Ali | last post by:
Hi, I am facing some problems in Data Grid bool Column. Data Grid bool Column is not painting correctly after Scrolling in .net 1.1. Any one knows how to correct this?? Thankx in advance. Regards,
4
11473
by: D | last post by:
I'm sure this is a simple question to the Tkinter experts - I have a very basic Tkinter application that consists of 1 master window and buttons within that window. My problem is that, I need to be able to scroll (up and down) when I get to the point that the buttons go off the screen. What's the easiest way to do this? Thanks in advance.
7
2883
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt enough memory' error whenever I scroll past N number of bytes in a textbox that has been filled with a lot of data. I am not sure what N is, but for...
0
7697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
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...
1
7672
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...
0
6283
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...
1
5512
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
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

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.