Questions tagged [columnspan]
30 questions
34
votes
6 answers
Set rowSpan or colSpan of a child of a GridLayout programmatically?
I have a GridLayout with 5 columns and 3 rows. Now I can insert arbitrary child views, which is great. Even better is, that I can assign columnSpan=2 to some item in order to span it to 2 columns (the same with rowSpan).
The problem now is, that I…

The_Unknown
- 988
- 2
- 11
- 22
27
votes
2 answers
How to set a columnspan in tableLayoutPanel
I am using a tableLayoutPanel which consist of two rows. In first row I want two columns,
and in second row I only need one column. How can I do this?

Nighil
- 4,099
- 7
- 30
- 56
9
votes
4 answers
Looking for explanation for WPF Grid ColumnSpan behavior
I asked a question at http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/5c7f5cdf-4351-4969-990f-29ce9ec84b87/ , but still lack a good explanation for a strange behavior.
Running the following XAML shows that the TextBlock in column 0 is width…

Dale Barnard
- 779
- 1
- 7
- 16
7
votes
3 answers
Tkinter Grid Columnspan ignored
Consider the following python script
#!/usr/bin/env python
from Tkinter import Tk, Label
width = SOME_VALUE_HERE
root = Tk()
label1 = Label(root, text='1 columns wide')
label2 = Label(root, text='%i columns wide' %…

user2085282
- 1,077
- 1
- 8
- 16
6
votes
1 answer
Best Way To Span Multiple Columns in WPF Grid/List?
I have a custom user control I wrote in WPF to display some data. I want to show this usercontrol in a list, but I also want to provide multiple column headers (matching some properties on the user cotrol) so users can sort on properties contained…

Chris Holmes
- 11,444
- 12
- 50
- 64
3
votes
2 answers
WPF Get ColumnSpan of an element
It's really easy to set column span for an UIElement in a grid.
Grid.SetColumnSpan(extBorder, gridFormular.ColumnDefinitions.Count());
but what's about reading an element's ColumnSpan? How to do that?

René Stalder
- 2,536
- 5
- 31
- 50
3
votes
2 answers
How to reset the column span of a widget in a QGridLayout?
Is possible to set the column span of a QLineEdit box after it has been added to the layout? I have two QLineEdit boxes in a QGridLayout that are right next to each other horizontally. During the execution of some of my code, one of these boxes gets…

artomason
- 3,625
- 5
- 20
- 43
2
votes
1 answer
Possible for Control to Span Half ColumnSpan in Grid?
Like the title says, is it possible for a control to span half of a column?
I get the following error when I try:
Cannot convert string '1.5' in attribute 'ColumnSpan' to object of type…

Turkwise
- 137
- 3
- 17
2
votes
2 answers
A JTable where number of columns in each row may be different
I am looking for a solution for a JTable where I can vary the number of columns in each row, but where the size (in pixels) of the row is constant.
I found stackoverflow referencing so far only dead-links to an old solution:
JTable with varying…

svaens
- 649
- 7
- 23
2
votes
1 answer
horizontalSpan in SWT GridLayout doesn't span
I'm trying to configure a dialog window like so:
@Override
protected Control createDialogArea(Composite parent) {
GridLayout dialogAreaLayout = new GridLayout();
dialogAreaLayout.numColumns = 2;
…

Marcus Toepper
- 2,403
- 4
- 27
- 42
1
vote
1 answer
What happened to `column-span: `
searching for this functionality, i came across the 2001 draft, which specified column-span to be defined as none | all | | inherit. i don’t get the none (spans no columns? does that mean display:none‽), but other than that, it’s nice. it…

flying sheep
- 8,475
- 5
- 56
- 73
1
vote
0 answers
SWT/JFace Column and Line Span in TableViewer
I need to span some column and rows in a TableViewer. The image bellow pretty much speaks for itself.
http://postimage.org/image/28l8re8lg/
I was thinking of implementing this by making some line invisible(white) but I don't think you can set…

Lori
- 562
- 5
- 24
1
vote
1 answer
How to Set ColumnSpan in a Custom Grid in Xamarin.Forms
I've been developing a custom grid which has some attached properties. I can set rows and columns without problem but when I try to set columnspan, it does not effect.
In my example, I have
1
vote
1 answer
Odd interaction between grid_propagate and columnspan
Assigning a columnspan (other than 1) to a child object appears to negate the effects of uniform=1 and grid_propagate(False). Here is a simple example of what I mean (click the text to toggle back and forth and observe the change).
import tkinter as…

Nathan
- 118
- 6
1
vote
1 answer
cannot get columnspan to make button fill the row of a Tkinter frame
I have seen this Python Tkinter - Set Entry grid width 100% and this columnspan in grid options dose't function (which was more useful) but cannot figure out how to get my 'Replot' button to fill the width of the row it is on. No matter what I set…

Windy71
- 851
- 1
- 9
- 30