472,958 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Scroll bar in Grid View

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
the grid .

Hence I have make a condition (checking the row count in the grid ) and put
the code in side that.

Can any one give a better solution for this
Nov 2 '06 #1
2 3798
Use "overflow-y:auto" or simply "overflow:auto" instead.
"Umeshnath" <Um*******@discussions.microsoft.comwrote in message
news:80**********************************@microsof t.com...
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
the grid .

Hence I have make a condition (checking the row count in the grid ) and
put
the code in side that.

Can any one give a better solution for this


Nov 2 '06 #2
Hi,
Thanks for your help.
But I need to optimize little bit this also.
The below code will work but it will reserve space for the grid view.
I have two data grid, one is completed task and other is for hydrated
..Suppose right now I don’t have single item in the hydrated list and I have
few items in the completed list (assume first one is hydrated grid and second
one is completed). In this case it is reserving space (normal height of grid)
for the first grid even though no data in the grid. It looks odd. If no data
is there in the first grid and second has data, second grid has to come top.
(This will work normal scenario, if we are not using div)

Also let me know any other better code. Rather than using div tag

Can any one help for this?

"Reid" wrote:
Use "overflow-y:auto" or simply "overflow:auto" instead.
"Umeshnath" <Um*******@discussions.microsoft.comwrote in message
news:80**********************************@microsof t.com...
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
the grid .

Hence I have make a condition (checking the row count in the grid ) and
put
the code in side that.

Can any one give a better solution for this


Nov 3 '06 #3

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

Similar topics

2
by: William Gill | last post by:
I need to display a couple of labels and a checkbox from each entry in my database. Simple enough, but there are several hundred records, and I only want to display 5 or 10 at a time. Can this be...
2
by: Boaz Ben-Porat | last post by:
Hi all Is there a way to simulate a click on a scrollbar (horizontal) of a FataGrid ? I need to programmatically scroll the grid to the right/left upon some condition, when the total width of...
1
by: Jeremy Chapman | last post by:
I've got a grid inside a div so that it's got scroll bars around it. What I want to do is have the header row fixed at the top, so that the vertical scroll bars scroll just the data rows of the...
4
by: sumit | last post by:
Hi, I want to make a datagrid to be scrollable instead of paging in it. So i have put that datagrid html tags inside <div></div> tags and made that div scrollable. Due to this if i scroll down...
3
by: rmunson8 | last post by:
I have added Panel control to a web page which contains a GridView. The Panel's ScrollBars property is set to auto. When I select the Select CommanField button for a row (which obviously causes a...
0
by: memanwar | last post by:
Throughout our system we use the DataGrid. One problem we've noticed is that the arrow buttons don't always work with our grids, clicking on them sometimes won't move the columns at all, or may...
1
by: Robert G | last post by:
I'm using VB .net 2003. I have a grid where everything is working fine except when after the grid is filled with records (by setting the data source to a data view), both the horizontal and...
3
by: EdB | last post by:
How do I capture the position of the vertical scroll bar? I present the grid to a user, they select an item, and I pop up an edit window. When they are done, I need to refresh the grid (editing...
2
by: akm | last post by:
I am facing an issue with the vertical scroll bar. Actually i am using data grid to display the data in my tables, and also i am using the same view form to diplay the data for different tables....
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.