473,466 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Create 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 5767
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2****************@TK2MSFTNGP05.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**************@TK2MSFTNGP04.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
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...
1
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...
1
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...
10
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...
1
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...
8
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...
0
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...
0
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...
5
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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,...
1
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
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.