473,505 Members | 16,940 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,except the header
plzz help
Aug 21 '06 #1
4 3060
rupalirane07
9 New Member
<style type="text/css">.DataGridFixedHeader { BACKGROUND: none transparent scroll repeat 0% 0%; POSITION: relative; ; TOP: expression(this.offsetParent.scrollTop) }
</style>

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

<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

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

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

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

<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">

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

and now run the page this ll be much helpful
rupali's code...
TOP: expression(this.offsetParent.scrollTop)
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 DataGridFixedHeader and then end Template editing. and run and check.

Try this it wont comes over the header
rupali's code...
TOP: expression(this.offsetParent.scrollTop)
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 DataGridFixedHeader 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
5576
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...
1
3583
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...
1
4974
by: john sutor | last post by:
Does anyone know if you can display vertical scroll or horizontal scroll bars on the datagrid ???
6
1525
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...
3
2696
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...
7
3092
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...
1
1833
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. ...
4
11462
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...
7
2876
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...
0
7218
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,...
0
7103
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...
1
7021
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
5614
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,...
1
5035
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...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
0
409
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...

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.