473,655 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net 2.0 gridview scrolling text in one column

Hi

I am pretty new to asp.net gridviews.

I need to get the text in one column to scroll, I have little screen space
and one column is normally empty, but is sometimes quite long.

Has anybody done this? Can I just put a Marquee into the column to acheive
this? if so, how do I do that?

Thanks

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
Feb 6 '08 #1
4 2444
Hello Phil,

Didn't understand what's your problem.
Could your please explain it detaily?
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PJHi
PJ>
PJI am pretty new to asp.net gridviews.
PJ>
PJI need to get the text in one column to scroll, I have little screen
PJspace and one column is normally empty, but is sometimes quite long.
PJ>
PJHas anybody done this? Can I just put a Marquee into the column to
PJacheive this? if so, how do I do that?
PJ>
PJThanks
PJ>
PJPhillip Johnson (MCSD For .NET)
PJPJ Software Development
PJwww.pjsoftwaredevelopment.com
Feb 6 '08 #2
You can make this column templated and put the text into an html div with
overflow-y:auto.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Phil Johnson" <Ph*********@di scussions.micro soft.comwrote in message
news:3C******** *************** ***********@mic rosoft.com...
Hi

I am pretty new to asp.net gridviews.

I need to get the text in one column to scroll, I have little screen space
and one column is normally empty, but is sometimes quite long.

Has anybody done this? Can I just put a Marquee into the column to
acheive
this? if so, how do I do that?

Thanks

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com

Feb 6 '08 #3
Hi, I have a small resolution to work to.

One column in the grid is normally empty, but if it has text the text is
long, so I want the column to be narrow but to be able to see a string that
could be around 100 characters long if need be.

My first thoughts are if I could have this cell to scroll (automatically
with no user interaction) then that will keep the column narrow but allow the
whole text to be displayed. I know to have text scrolling automatically, you
can use the Marquee element control (or you could... its a while since I used
it so I will have to check its still around) but I'm unsure how to use that
inside a cell in a gridview.

Any suggestions are appreciated.

Thanks.

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"Michael Nemtsev [MVP]" wrote:
Hello Phil,

Didn't understand what's your problem.
Could your please explain it detaily?
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PJHi
PJ>
PJI am pretty new to asp.net gridviews.
PJ>
PJI need to get the text in one column to scroll, I have little screen
PJspace and one column is normally empty, but is sometimes quite long.
PJ>
PJHas anybody done this? Can I just put a Marquee into the column to
PJacheive this? if so, how do I do that?
PJ>
PJThanks
PJ>
PJPhillip Johnson (MCSD For .NET)
PJPJ Software Development
PJwww.pjsoftwaredevelopment.com
Feb 6 '08 #4
Hi Eliyha,

Thanks for the response.

The site is to displayed on TV screens though with no human interaction so I
need the text to scroll automatically.

Will you suggestion do that, or would it just display scroll bars that a
user would then have to click to scroll?

Thanks,

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
"Eliyahu Goldin" wrote:
You can make this column templated and put the text into an html div with
overflow-y:auto.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Phil Johnson" <Ph*********@di scussions.micro soft.comwrote in message
news:3C******** *************** ***********@mic rosoft.com...
Hi

I am pretty new to asp.net gridviews.

I need to get the text in one column to scroll, I have little screen space
and one column is normally empty, but is sometimes quite long.

Has anybody done this? Can I just put a Marquee into the column to
acheive
this? if so, how do I do that?

Thanks

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com


Feb 6 '08 #5

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

Similar topics

2
4452
by: rufpirat | last post by:
Hello I'm in the middle of trying to build an "AD phone book", and this being my first try at asp.net, I have a few questions that I hope some of you might be able to help with: 1. Is it correct, that PageSize equals the max size of the result set? 2. Is there a way to make asp cache the search result, so the domain controller won't be to bother by all the lookups, and also to speed up
1
9350
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes GridView.Visible = True. I press HIDE and the GridView disappears as expected. After it I press SHOW and the GridView doesn't show.
5
6436
by: sutphinwb | last post by:
Hi - This could be a simple question. When I relate two tables in a datasetet, how do I get that relation to show up in a GridView? The only way I've done it, is to create a separate table in the dataset with a join query for the GetData() select method. I use ObjectDataStore to couple the GridView with the table adapter on the dataset. If I point the ODS at the child table, the GridView will bind to the "normal" select and I end up...
4
8324
by: Ken Wigle | last post by:
All, I would be very grateful for any help on this question. I have an application in asp.net 2.0 where I dynamically create a datatable and then bind that to a gridview. Unfortunately, the date column always shows the date and time while I just want the short date. I have tried applying a format string {0:d} but to no avail. I saw a lot of posts regarding the htmlencode property but I do not know how to turn that off for a...
2
2097
by: NH | last post by:
Is it possible to create a gridview control that allows scrolling on the columns. I have a gridview with a list of people names in the first column and the rest of the columns are week dates just showing a certain value for each person for the week. My gridview currenntly shows 10 weeks. But can I fix the person column and allow scrolling on the other columns so you can scroll up to 30 or 40 weeks easily. This is similar to excel in...
0
2420
by: landesjoe | last post by:
Hi, here's my problem in short: Text boxes in gridview don't seem to hold their value if the column's .Visible property is changed back and forth. I've got a form with a gridview populated from a data view (which in turn is loaded from a manually setup DataTable for testing purposes). One of the columns in the grid is a checkbox that's tied to an event handler that'll change the .Visible property of a column with a text box. That text...
1
6722
by: Jeff | last post by:
ASP.NET 2.0 I've got problems with the right column in my GridView. The GridView consist of 2 columns, the problem column is the column on the right side. The problem is that it looks like there is a huge space between the 2 columns, see the huge grey space between the 2 columns. I want the columns to be very close to each other with only 10px open space between the columns. Now it looks like there is a 160px margin between them
0
6517
by: tim85 | last post by:
Hello, I am trying to extend the System.Web.UI.WebControls.BoundField class to create a custom GridView / DetailsView column that will render other controls, for example a Calendar or a DropDownList. I have made a start using some sample code from Stephen Walther's book "ASP.NET 2.0 Unleashed". (By the way, it's excellent). The sample inherits from the basic BoundField class to create a multi-line text bound field: Imports System
1
4721
by: =?Utf-8?B?Z3V5?= | last post by:
I have a GridView with column widths defined as percentages however if a column has a row that is longer than the defined width the column width increases to compensate. If I turn Wrap on this works but only if there are spaces in the text. How can I force wrapping (or scrolling) ft the text is is too long for the box? e.g. a long email address? The GridView is not editable.
0
8380
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8497
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8598
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
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
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.