473,656 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView header wrap

Hi,

Is there a bug in the GridView control specifically related to wrapping of
header text...?

E.g. the following tag
<asp:GridView HeaderStyle-Wrap="false" ID=gvListUsers runat=server ... etc
.... >

does not prevent the header text from wrapping.

Even if I add the following:
<HeaderStyle Wrap="false" />

the header text still wraps...

Is this a known issue? It certainly didn't / doesn't happen with the old
<asp:DataGrid control.

Any assistance gratefully received.

Mark
May 15 '06 #1
2 5786
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
Hi,

Is there a bug in the GridView control specifically related to wrapping of
header text...?

E.g. the following tag
<asp:GridView HeaderStyle-Wrap="false" ID=gvListUsers runat=server ... etc
... >

does not prevent the header text from wrapping.

Even if I add the following:
<HeaderStyle Wrap="false" />

the header text still wraps...

Is this a known issue? It certainly didn't / doesn't happen with the old
<asp:DataGrid control.

Any assistance gratefully received.

Mark

Anyone got any thoughts about this - it's driving me crazy!
May 17 '06 #2
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:Oe******** ******@TK2MSFTN GP04.phx.gbl...
Anyone got any thoughts about this - it's driving me crazy!


Finally figured it out, with the help of this webpage:
http://www.experts-exchange.com/Prog..._21705273.html

Basically, if a GridView is contained within a panel (or anything which
renders as a DIV), any CSS applied to the containing object overrides the
GridView's formatting settings...
May 20 '06 #3

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
2414
by: Nick | last post by:
hi all: the one of the column of gridview got multiple line data to be shown , so how do i deal with it? what i am thinking about is using template field instead of the boundfield. is that other solution out there? Cheers Nick
1
10534
by: Keithb | last post by:
I have a GridView control with two item template columns, each containing a label control. One of the label controls wraps on long text strings, increasing the height of the row. The other one does not wrap. Instead, it makes the label column extremely wide so that it extends outside the browser window. How can I make this column wrap the way the other one does? Thanks, Keith
10
6683
by: Carlos | last post by:
Hi all, I have a form with an input radio control in a template field. When the user selects an option, and press a button the selection disappears.. I would like the selection to persist after the button makes the postback, I tried using the findcontrol but it returns null, and do not know how to make sure that the radio selected persist after the button action makes the postback.
1
4271
by: Sharon | last post by:
Hello All, I have a gridview control in webform which is dynamically populated on page startup with a query. I was trying to change the header text for the columns and also set wrap to false. i have four columns in gridview. Any suggestions guys This is what i used but i keep getting error Private Sub changestyle() GridView1.Columns(1).HeaderText = "First Name"
8
7730
by: gerry | last post by:
The PagerSettings.Visible property is not being handled properly by the GridView control. The value assigned to this property is not applied until after a postback. Simplest test : .aspx containing a single gridview - enable paging and give enough data to page. add checkbox with auto postback enable add button with auto postback enable in the GridView1_PreRender method add the following : GridView1.HeaderRow.Enabled =
0
1927
by: pargat.singh | last post by:
Hi Everyone: I have a gridview control with AllowSorting="True" and work ok. But my page will be used by different user from different region so i need to change the HeaderText based on language like english or french etc.When i updat ethe header on GridView1_RowCreated sorting does not work anymore. Below are my code. Is this because of BoundField. Can someone please help me with this issue. Thanks in advance. <asp:GridView...
0
1403
by: pargat.singh | last post by:
Hi: I am using a grid and having a problem with sorting. Below are my code and change the header name at run time as below based on language.If i don't change the header name it work. Can someone please help me so that i can enable the sorting and change the header as well. Thanks, in advance. <asp:GridView ID="GridView1" CellPadding="5"
5
1962
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I have a sub in vb.net that adds extra headers to a gridview and it works very well. however, i tried to translate it to c# and i'm getting the header inserting itself over the first datarows and inserting blank rows at the bottom. i can post the code if necessary for the C# but it basicly mirrors the vb.net -- (i''ll be asking a lot of these, but I find C# totally way cooler than vb
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...
0
8816
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6162
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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.