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

True fixed-width columns in DataGrid

ASP.NET 2003. Two DataGrids, six columns each, one grid
atop the other. I need to have the columns line up,
i.e., DataGrid1 Col(1) lined up w/ DataGrid2 Col(1) -
each the same width on the screen. All columns have the
same width assigned via Property Builder, and both
DataGrids themselves have the same fixed width. Wrap is
OFF for each column item because I can only afford the
real estate for a single line; the users should have to
highlight and drag-right to see any hidden text in a
given cell.

However, the text in (say) col(2) is variable in size and
when the grids populate, col(2)'s width still expands or
contracts. So DataGrid1 Col(2) is a different width than
DataGrid2 Col(2) and it throws the alignment out of
whack - even though I've hardcoded the column and
DataGrid widths. Ideas? TIA.

TPS
Jul 19 '05 #1
2 5217
"TPSreport" <ms***@e-tsi.net> wrote in message news:<04****************************@phx.gbl>...
ASP.NET 2003. Two DataGrids, six columns each, one grid
atop the other. I need to have the columns line up,
i.e., DataGrid1 Col(1) lined up w/ DataGrid2 Col(1) -
each the same width on the screen. All columns have the
same width assigned via Property Builder, and both
DataGrids themselves have the same fixed width. Wrap is
OFF for each column item because I can only afford the
real estate for a single line; the users should have to
highlight and drag-right to see any hidden text in a
given cell.

However, the text in (say) col(2) is variable in size and
when the grids populate, col(2)'s width still expands or
contracts. So DataGrid1 Col(2) is a different width than
DataGrid2 Col(2) and it throws the alignment out of
whack - even though I've hardcoded the column and
DataGrid widths. Ideas? TIA.

TPS


It seems to ignore the fixed column widths set by property builder if
Showheader = false on the DataGrid.
Jul 19 '05 #2
-----Original Message-----
"TPSreport" <ms***@e-tsi.net> wrote in message news:<04****************************@phx.gbl>...
ASP.NET 2003. Two DataGrids, six columns each, one grid atop the other. I need to have the columns line up,
i.e., DataGrid1 Col(1) lined up w/ DataGrid2 Col(1) -
each the same width on the screen. All columns have the same width assigned via Property Builder, and both
DataGrids themselves have the same fixed width. Wrap is OFF for each column item because I can only afford the
real estate for a single line; the users should have to highlight and drag-right to see any hidden text in a
given cell.

However, the text in (say) col(2) is variable in size and when the grids populate, col(2)'s width still expands or contracts. So DataGrid1 Col(2) is a different width than DataGrid2 Col(2) and it throws the alignment out of
whack - even though I've hardcoded the column and
DataGrid widths. Ideas? TIA.

TPS


It seems to ignore the fixed column widths set by

property builder ifShowheader = false on the DataGrid.
.
Hmmm...I do have showheader = "True" and the fixed

widths are ignored.
Jul 19 '05 #3

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

Similar topics

16
by: Timothy Fitz | last post by:
http://www.python.org/moin/PythonSpeed ] "Starting with Py2.3, the interpreter optimizes 'while 1' to just a single jump. In contrast "while True" takes several more steps. While the latter is...
20
by: svend | last post by:
I'm messing with some code here... Lets say I have this array: a1 = ; And I apply slice(0) on it, to create a copy: a2 = a1.slice(0); But this isn't a true copy. If I go a1 = 42, and then...
14
by: root | last post by:
Hi group, Apologies in advance if this has been asked somewhere before, but I haven't managed to get anything from the Google archives - I've been getting introductory guides to C++ all day...
5
by: Steve | last post by:
Hello, I've been a PHP programmer for a number of years and have just started to learn JS. My Employer (a water analysis lab) wants what should be a very simple .js written that basically takes...
4
by: Bradley Plett | last post by:
I have what should be a trivial problem. I am using XMLSerializer to serialize an object. It serializes boolean values as "True" and "False". I then want to use an XSLT on this XML, and I want...
48
by: Skybuck Flying | last post by:
Hi, I came across this C code which I wanted to understand etc it looked like this: if (-1) etc It made me wonder what the result would be... true or false ? In C and Delphi
16
by: Alfred Taylor | last post by:
I've been flipping through various coding standards documents for C#/.NET and all of them say to use: if ( boolVar ) {...} instead of if ( boolVar == true ) {...} For the life of my I can't...
2
by: xllx.relient.xllx | last post by:
Hi, there. I need two simple things explained to me: 1.) I want to know why the "true" overloaded operator method gets called with a test to a null-initialized instance: public class...
0
by: Sullivan WxPyQtKinter | last post by:
Hi, I am now using minidom for my current development. I use cloneNode method in Element object, but it just does not work. The test code is very simple as follows: =========CODE==============...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.