Questions tagged [column-width]
282 questions
10
votes
4 answers
How to auto-size column-width in Excel during text entry
I usually try to avoid VBA in Excel, but it would be convenient to be able to type text into a cell, and have its column get wider or narrower to accommodate the text remaining as it's entered or deleted.
This would be subject, of course, to the…

ChrisA
- 4,163
- 5
- 28
- 44
9
votes
3 answers
CSS to make a table column take up as much room as possible, and other cols as little
I need to layout a html datatable with CSS.
The actual content of the table can differ, but there is always one main column and 2 or more other columns. I'd like to make the main column take up as MUCH width as possible, regardless of its contents,…

EvilPuppetMaster
- 8,072
- 10
- 34
- 31
8
votes
1 answer
Why does the units of Range.ColumnWidth not match either points or Centimeters (default unit used)
I am producing a VBA subroutine in an Access database which generates an Excel File however when I modify the column widths using:
Range("A:A").ColumnWidth = ...
Produces mixed results depending on the unit of measurement. Excel's default…

joelc
- 331
- 3
- 9
8
votes
1 answer
What's the correct way to size an iframe in a Twitter bootstrap fluid layout?
I have a 2-column fluid Twitter bootstrap layout, and want an iframe in one of the panes (it will contain the Google tasks widget -- https://mail.google.com/tasks/ig). How do I set the width properly? I figured out how to set the style so it has a…

gatoatigrado
- 16,580
- 18
- 81
- 143
7
votes
1 answer
C# iTextSharp AutoAdjust column widths
Is there a way to adjust columnwidth automatically to fit as much content in them as they can (sort of like double click a column width is a grid control).
At the moment I am setting them as percentages, but as there is different content depending…

Michal Ciechan
- 13,492
- 11
- 76
- 118
6
votes
1 answer
Qml GridLayout how to specify a column width?
I have a column with two groupbox which each have a GridLayout.
Here is my code:
Window {
visible: true
width: 500
height: 480
title: qsTr("GridLayoutTest")
Column
{
GroupBox
{
contentWidth: gl1_.width
…

APianist
- 291
- 1
- 4
- 14
6
votes
1 answer
WPF GridSplitter strange behavior when Column Width="Auto"
I have pretty simple layout, look:

monstr
- 1,680
- 1
- 25
- 44
6
votes
3 answers
How to set an Android GridView with different column sizes
I have a GridView in my main layout as follows:
…

Mahorad
- 1,258
- 1
- 15
- 22
6
votes
4 answers
How to detect values that do not fit in Excel cells, using VBA?
We are generating long Excel sheets using various tools, which have to be reviewed and used as input further down in the workflow.
The problem that some cells are too small for texts they contain.
So humans and programs that are reading the…

jmster
- 943
- 1
- 12
- 25
5
votes
3 answers
How to fit textbox width with a set of columns in a grid?
Supose I have a grid with 4 columns and want to put a textbox in the second column and span it to the last column. How could I fit the textbox width to be as wide as the 3 last columns?
I have tried something with Borders, but it didn't…

Guilherme Campos
- 369
- 7
- 20
5
votes
1 answer
.NET ListView, max number of characters, or maximum column width? Possible to override/expand?
I have a .NET ListView control in which I display stack traces. I used the ListView since I needed to manipulate the font/colors of certain lines.
However, it seems there is some kind of maximum regarding the width of the columns, either the number…

Lasse V. Karlsen
- 380,855
- 102
- 628
- 825
5
votes
2 answers
automatically calculating column width in JTable
What's the preferred way of this (based on header & contents width I believe)?

yanchenko
- 56,576
- 33
- 147
- 165
5
votes
1 answer
PyQt: How to adjust QTableView header-size/column-width
I am trying to set the header-size or column-width as described in this link.
The problems are:
table.horizontalHeader().setStretchLastSection(True) is ok but not optimal
self.produktKaufTb.setColumnWidth(1,…

Georg Gutsche
- 452
- 4
- 9
- 17
5
votes
5 answers
chrome vs FF/IE/Opera in calculating table cell width ? (table-layout:fixed)
I've searched now for almost half a day... but I couldn't find out why chrome6/7 seems to be the only browser in comparison to IE8/FF3.6/Opera that does not add the padding to the specified width of an table cell.
Of course this becomes crucial if…

berny
- 51
- 1
- 1
- 3
5
votes
1 answer
WinForms, CheckedListbox Automatic column width
I have a checkedlistbox with the property MultiColumn set to true.
I'm showing the control in two lines.
Is there a way to automatically adjust the columns width to each set of columns (in a way that each set of columns will be in width which will…

LEyahoo
- 83
- 1
- 9