473,322 Members | 1,755 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,322 software developers and data experts.

Scrolling in datagrid.

Does anyone know how to scroll the items only of the datagrid. The header
should remain there, and the rows should scroll. I saw an article by Dino
Eposito, in aspnetpro but its for members only.

Rajesh
Nov 17 '05 #1
6 1261
Check out this article,
http://www.microsoft.com/india/msdn/...leDataGridWebS
erverControl.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:#5**************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to scroll the items only of the datagrid. The header
should remain there, and the rows should scroll. I saw an article by Dino
Eposito, in aspnetpro but its for members only.

Rajesh

Nov 17 '05 #2
Saravana,

I thought of the solution u had presented, but it will not work if the
column width keeps varying slightly due to the data. While testing the
column lines to align is very difficult, u wud have to be very sure of the
data. So i cant use it.

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Check out this article,
http://www.microsoft.com/india/msdn/...leDataGridWebS erverControl.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:#5**************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to scroll the items only of the datagrid. The header should remain there, and the rows should scroll. I saw an article by Dino Eposito, in aspnetpro but its for members only.

Rajesh


Nov 17 '05 #3
If it has to work in IE only, you can just enclose the datagrid within a div
tag

<DIV STYLE="overflow-x;hidden; overflow-y:auto" >
everything nested within this tag is scrollable...
</DIV>

i hope that helped

patrick dahmen

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Saravana,

I thought of the solution u had presented, but it will not work if the
column width keeps varying slightly due to the data. While testing the
column lines to align is very difficult, u wud have to be very sure of the
data. So i cant use it.

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Check out this article,

http://www.microsoft.com/india/msdn/...leDataGridWebS
erverControl.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:#5**************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to scroll the items only of the datagrid. The header should remain there, and the rows should scroll. I saw an article by Dino Eposito, in aspnetpro but its for members only.

Rajesh



Nov 17 '05 #4
Patrick,

But the header of the grid also scrolls.... header shud be frozen.
"Patrick Dahmen" <p.dahmen@(nospam)e-llusions.de> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
If it has to work in IE only, you can just enclose the datagrid within a div tag

<DIV STYLE="overflow-x;hidden; overflow-y:auto" >
everything nested within this tag is scrollable...
</DIV>

i hope that helped

patrick dahmen

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Saravana,

I thought of the solution u had presented, but it will not work if the
column width keeps varying slightly due to the data. While testing the
column lines to align is very difficult, u wud have to be very sure of the
data. So i cant use it.

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Check out this article,

http://www.microsoft.com/india/msdn/...leDataGridWebS
erverControl.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:#5**************@TK2MSFTNGP12.phx.gbl...
> Does anyone know how to scroll the items only of the datagrid. The

header
> should remain there, and the rows should scroll. I saw an article
by Dino
> Eposito, in aspnetpro but its for members only.
>
> Rajesh
>
>



Nov 17 '05 #5
Ouch i am sorry.
"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl...
Patrick,

But the header of the grid also scrolls.... header shud be frozen.
"Patrick Dahmen" <p.dahmen@(nospam)e-llusions.de> wrote in message
news:Ot**************@TK2MSFTNGP11.phx.gbl...
If it has to work in IE only, you can just enclose the datagrid within a

div
tag

<DIV STYLE="overflow-x;hidden; overflow-y:auto" >
everything nested within this tag is scrollable...
</DIV>

i hope that helped

patrick dahmen

"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
Saravana,

I thought of the solution u had presented, but it will not work if the
column width keeps varying slightly due to the data. While testing the
column lines to align is very difficult, u wud have to be very sure of the data. So i cant use it.

"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
> Check out this article,
>

http://www.microsoft.com/india/msdn/...leDataGridWebS
> erverControl.aspx
>
> --
> Saravana
> Microsoft MVP - ASP.NET
> www.extremeexperts.com
>
>
>
> "Rajesh.V" <Ra***********@hotmail.com> wrote in message
> news:#5**************@TK2MSFTNGP12.phx.gbl...
> > Does anyone know how to scroll the items only of the datagrid. The
header
> > should remain there, and the rows should scroll. I saw an article by Dino
> > Eposito, in aspnetpro but its for members only.
> >
> > Rajesh
> >
> >
>
>



Nov 17 '05 #6
The new Web Matrix ships with an IFrame control, if you are targeting
Internet Explorer. Download it, and you can use the assemblies in Visual
Studio .NET. NOTE: You will have to deploy the assemblies to production to
get it to work there.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Rajesh.V" <Ra***********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to scroll the items only of the datagrid. The header
should remain there, and the rows should scroll. I saw an article by Dino
Eposito, in aspnetpro but its for members only.

Rajesh

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Igor Mendizabal | last post by:
Hello, We're doing our own datagrid based on the System.windows.forms.datagrid control, and are having some problems with horizontal scrolling. In general, we construct our datagrid adding a...
3
by: Hans [DiaGraphIT] | last post by:
how can I keep track of the first visble line in my datagrid when I drag the vertical scrollbar up or down? To clairfy my need... An example: I wish to set CurrentRowIndex to be the first...
1
by: makthar | last post by:
You can use a panel control and put the datagrid in it. Then set the asp:panel...style="overflow:auto"..... There is a real nice short article on it somewhere I don't remember. Do a search with...
3
by: Wayne J | last post by:
I am using a DIV to simulate a scrolling DataGrid, however when I try to get the width (Div1.Styles.Items("Width")) I get nothing. Now I realise at the point the code is run, the DIV is not even...
1
by: Craig Banks | last post by:
If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over several datagrid rows so...
1
by: John Bayly via .NET 247 | last post by:
I'm working on an inherited Datagrid class that includes afunction called onMouseMove to paint the row under the cursor tomake reading easier for users. To paint the row, the function sets the...
0
by: Wasco | last post by:
Hi all, somebody knows how can I implement a scrollable datagrid? I made one used DIV tag and the tricks of a datagrid for title and another for contents but I'm not satisfied. Thanks!! ...
1
by: Wasco | last post by:
Hi All, somebody knows how can I implement a scrollable datagrid? I made one used DIV tag and the tricks of a datagrid for title and another for contents but I'm not satisfied. Thanks!!
3
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...
0
by: asharda | last post by:
I am coding a windows mobile application and I want to make the selected row as the 1st row in the datagrid, so that it is always visible, since in th eprogram when the row is clicked a small panel...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.