Control Width of columns in bootstrap3 - twitter-bootstrap-3

Can anyone please let me know how can we control the width of column in bootstrap 3. I have tried with setting the bAutoWidth: false and still no luck..Thanks in advance...

Related

Label with Auto Length increment as per need but not width

I'm stuck on a code where I need to make Label AutoSize with fixed width. I've tried
Label1.AutoSize = True
Label1.MaximumSize = (FixedWidthInteger,0)
but its still not resizing the length when text if overflow. I've tried to make Panel also AutoSize Enabled to let Label resizing itself but both ways doesn't work. Thank you if you can help me with this please.
Its fixed. I just change the Anchor to all sides of the Panel and its resizing well now.

VB .NET - Autosize datagridview row height

Problem Definition
So I am trying to do something that should be very basic; however, I can't seem to make it actually work. I am simply trying to make my datagridview autoresize every row height to the text entered. Am I missing something?
What I have tried
I have read through examples on SO and other sites and they all recommend a similar idea. So to make it simple here is exactly what I have done so far:
I created a new datagridview.
I clicked on columns > Add and use the default name and type (textbox)
I kept the Autosizemode of that column at None and DefaultCellStyle WrapMode to True.
I changed the datagridview's AutoSizeRowsMode = AllCells
From there I build my project and type some data in, but the column simply grows the column width and not the row height:
Am I missing a step somewhere? I purposely put every step I did because I feel like I am just missing something very simple...
go to the data grid view -->properties --> default cell style-change the wrap setting to true then use the autosizerow property as any mode like allcells or display cellslike

Table Viewer length Increases automatically under Section

I am newbie for the SWT and layouts. I have a Composite A inside that I have Section called "Table Contens" inside that i have another composite "Composite B" inside that I am using Table Viewer which uses TableColumnLayout.
All the composite and sections uses Grid layout and
GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, false);
My problem is,First time the table will contains 5 rows, So the table size arranges accordingly.If i select another file it will be populated with 10 rows and comes with scrollable.
When i go to another tab and come back to this table viewer tab it refreshes the layout and the height of the viewer adjust for the 10 rows.
If I give height and width manually it is working GridData objectivesectiondata=new GridData(670,150);
But I want the table to resize based on the screen but i need to restrict the height of it.
I know i need to do something with the layout .But I dont know how to do it?
I am in need of this very much.Any Advice ?
THanks in advance
Specify the GridData heightHint value, something like:
GridData gridData = new GridData(GridData.FILL, GridData.FILL, true, false);
gridData.heightHint = 150;

Setting the height and width of a datagrid in .cs

Could any one tell me the syntax for setting the height and width for a data grid in .cs?
Looking forward to a solution.
Thanks
prince
DataGrid1.Width = 100d

Labelsize appears bigger in VB.Net

I'm trying to stack a few lists on top of each other. But the label.size.height appears to be bigger then the label itself.
When i set the borderstyle to fixedsingle, i see the border around the text. But the height is bigger, so there comes a space between one label and the next.
I have tried to set margin and padding to 0 without result.
Exemple: label.size.height return 23, when the height actually is something around 15.
Does someone knows how i get the right size?
Edit:
When i explicitly set the height of the lable, the problem is solved. Is this some problem with autosize?
I had encounter this kind of problem earlier. The label height oscillated between 17 and 23. But, my labels were placed inside a TableLayoutPanel and so how I fixed it :), by making changes in Designer.cs
HTH