Unexpected auto grid column width











up vote
0
down vote

favorite












the code below is a small snippet of a big wpf Window I am using in my Project. It produces the linked wpf Window.



I am wondering why my last grid column is so wide. I am expecting that the width of the last column depends on the width of the button, because the column width is set to "Auto".
If I remove the columnspan of the StackPanel the column width will be correct but then the CheckBoxes are not aligned to right side.



I hope you have understood my problem. My aim is, that the last column is as small as possible, the checkboxes are at the right side and the rest stays at it is.



Because this snippet is part of a bigger wpf window I cannot remove any grid rows or columns.



Thank you very much for your help.



Best regards.



WPF Window



<Window x:Class="TestProject.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DesignHeight="152.429" d:DesignWidth="403">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Image Grid.Column="0"
Grid.Row="2"/>

<StackPanel Grid.Column="1"
Grid.Row="2"
Grid.ColumnSpan="2">

<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>











share|improve this question






















  • "why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
    – ASh
    Nov 9 at 9:06












  • But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
    – MickeyO-N3il
    Nov 9 at 9:12










  • StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
    – ASh
    Nov 9 at 9:17










  • No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
    – Celso Lívero
    Nov 9 at 9:17










  • @CelsoLívero then column 1 should have no width at all.
    – MickeyO-N3il
    Nov 9 at 9:43















up vote
0
down vote

favorite












the code below is a small snippet of a big wpf Window I am using in my Project. It produces the linked wpf Window.



I am wondering why my last grid column is so wide. I am expecting that the width of the last column depends on the width of the button, because the column width is set to "Auto".
If I remove the columnspan of the StackPanel the column width will be correct but then the CheckBoxes are not aligned to right side.



I hope you have understood my problem. My aim is, that the last column is as small as possible, the checkboxes are at the right side and the rest stays at it is.



Because this snippet is part of a bigger wpf window I cannot remove any grid rows or columns.



Thank you very much for your help.



Best regards.



WPF Window



<Window x:Class="TestProject.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DesignHeight="152.429" d:DesignWidth="403">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Image Grid.Column="0"
Grid.Row="2"/>

<StackPanel Grid.Column="1"
Grid.Row="2"
Grid.ColumnSpan="2">

<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>











share|improve this question






















  • "why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
    – ASh
    Nov 9 at 9:06












  • But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
    – MickeyO-N3il
    Nov 9 at 9:12










  • StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
    – ASh
    Nov 9 at 9:17










  • No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
    – Celso Lívero
    Nov 9 at 9:17










  • @CelsoLívero then column 1 should have no width at all.
    – MickeyO-N3il
    Nov 9 at 9:43













up vote
0
down vote

favorite









up vote
0
down vote

favorite











the code below is a small snippet of a big wpf Window I am using in my Project. It produces the linked wpf Window.



I am wondering why my last grid column is so wide. I am expecting that the width of the last column depends on the width of the button, because the column width is set to "Auto".
If I remove the columnspan of the StackPanel the column width will be correct but then the CheckBoxes are not aligned to right side.



I hope you have understood my problem. My aim is, that the last column is as small as possible, the checkboxes are at the right side and the rest stays at it is.



Because this snippet is part of a bigger wpf window I cannot remove any grid rows or columns.



Thank you very much for your help.



Best regards.



WPF Window



<Window x:Class="TestProject.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DesignHeight="152.429" d:DesignWidth="403">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Image Grid.Column="0"
Grid.Row="2"/>

<StackPanel Grid.Column="1"
Grid.Row="2"
Grid.ColumnSpan="2">

<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>











share|improve this question













the code below is a small snippet of a big wpf Window I am using in my Project. It produces the linked wpf Window.



I am wondering why my last grid column is so wide. I am expecting that the width of the last column depends on the width of the button, because the column width is set to "Auto".
If I remove the columnspan of the StackPanel the column width will be correct but then the CheckBoxes are not aligned to right side.



I hope you have understood my problem. My aim is, that the last column is as small as possible, the checkboxes are at the right side and the rest stays at it is.



Because this snippet is part of a bigger wpf window I cannot remove any grid rows or columns.



Thank you very much for your help.



Best regards.



WPF Window



<Window x:Class="TestProject.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
d:DesignHeight="152.429" d:DesignWidth="403">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Image Grid.Column="0"
Grid.Row="2"/>

<StackPanel Grid.Column="1"
Grid.Row="2"
Grid.ColumnSpan="2">

<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>








wpf wpfgrid






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 9:01









MickeyO-N3il

33




33












  • "why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
    – ASh
    Nov 9 at 9:06












  • But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
    – MickeyO-N3il
    Nov 9 at 9:12










  • StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
    – ASh
    Nov 9 at 9:17










  • No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
    – Celso Lívero
    Nov 9 at 9:17










  • @CelsoLívero then column 1 should have no width at all.
    – MickeyO-N3il
    Nov 9 at 9:43


















  • "why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
    – ASh
    Nov 9 at 9:06












  • But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
    – MickeyO-N3il
    Nov 9 at 9:12










  • StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
    – ASh
    Nov 9 at 9:17










  • No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
    – Celso Lívero
    Nov 9 at 9:17










  • @CelsoLívero then column 1 should have no width at all.
    – MickeyO-N3il
    Nov 9 at 9:43
















"why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
– ASh
Nov 9 at 9:06






"why my last grid column is so wide". StackPanel with CheckBoxes also wants some space. and checkboxes are wider than button. so the column is growing wider
– ASh
Nov 9 at 9:06














But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
– MickeyO-N3il
Nov 9 at 9:12




But the StackPanel and the CheckBoxes are in an other column than the Button. First of all the StackPanel should enlarge the size of its own column than use the space of the last column.
– MickeyO-N3il
Nov 9 at 9:12












StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
– ASh
Nov 9 at 9:17




StackPanel is in 2 columns because of Grid.ColumnSpan="2". "First of all the StackPanel should enlarge the size of its own column than use the space of the last column" - apparantly Grid has other ideas
– ASh
Nov 9 at 9:17












No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
– Celso Lívero
Nov 9 at 9:17




No, your StackPanel is inside the column 2, because of Grid.Column="1" Grid.ColumnSpan="2"
– Celso Lívero
Nov 9 at 9:17












@CelsoLívero then column 1 should have no width at all.
– MickeyO-N3il
Nov 9 at 9:43




@CelsoLívero then column 1 should have no width at all.
– MickeyO-N3il
Nov 9 at 9:43












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










You can put a grid inside another grid.



Here is the code that will help you achieve your goal.



<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Grid Name="GridInsideAGrid"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" />
<StackPanel Grid.Column="1">
<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>
</Grid>





share|improve this answer























  • Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
    – MickeyO-N3il
    Nov 9 at 9:56










  • I changed my answer. Please take a look.
    – Wojtman
    Nov 9 at 10:23










  • A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
    – MickeyO-N3il
    Nov 9 at 10:59











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53222610%2funexpected-auto-grid-column-width%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










You can put a grid inside another grid.



Here is the code that will help you achieve your goal.



<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Grid Name="GridInsideAGrid"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" />
<StackPanel Grid.Column="1">
<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>
</Grid>





share|improve this answer























  • Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
    – MickeyO-N3il
    Nov 9 at 9:56










  • I changed my answer. Please take a look.
    – Wojtman
    Nov 9 at 10:23










  • A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
    – MickeyO-N3il
    Nov 9 at 10:59















up vote
1
down vote



accepted










You can put a grid inside another grid.



Here is the code that will help you achieve your goal.



<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Grid Name="GridInsideAGrid"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" />
<StackPanel Grid.Column="1">
<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>
</Grid>





share|improve this answer























  • Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
    – MickeyO-N3il
    Nov 9 at 9:56










  • I changed my answer. Please take a look.
    – Wojtman
    Nov 9 at 10:23










  • A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
    – MickeyO-N3il
    Nov 9 at 10:59













up vote
1
down vote



accepted







up vote
1
down vote



accepted






You can put a grid inside another grid.



Here is the code that will help you achieve your goal.



<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Grid Name="GridInsideAGrid"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" />
<StackPanel Grid.Column="1">
<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>
</Grid>





share|improve this answer














You can put a grid inside another grid.



Here is the code that will help you achieve your goal.



<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<TextBox Grid.Column="0"
Grid.Row="0"
Margin="5"
Grid.ColumnSpan="2"/>

<Button Grid.Column="2"
Grid.Row="0"
Margin="5"
Width="40"/>

<ComboBox Grid.Column="0"
Grid.Row="1"
Margin="5"
Grid.ColumnSpan="3"/>

<Grid Name="GridInsideAGrid"
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="3">

<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>

<Image Grid.Column="0" />
<StackPanel Grid.Column="1">
<CheckBox Margin="5"
Content="checkbox content 1"/>

<CheckBox Margin="5,0,5,5"
Content="checkbox content 2"/>
</StackPanel>
</Grid>
</Grid>






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 9 at 10:22

























answered Nov 9 at 9:42









Wojtman

1168




1168












  • Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
    – MickeyO-N3il
    Nov 9 at 9:56










  • I changed my answer. Please take a look.
    – Wojtman
    Nov 9 at 10:23










  • A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
    – MickeyO-N3il
    Nov 9 at 10:59


















  • Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
    – MickeyO-N3il
    Nov 9 at 9:56










  • I changed my answer. Please take a look.
    – Wojtman
    Nov 9 at 10:23










  • A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
    – MickeyO-N3il
    Nov 9 at 10:59
















Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
– MickeyO-N3il
Nov 9 at 9:56




Sorry, but then the image is not resizing correctly, if I resize the window. The image has to end directly left of the checkboxes.
– MickeyO-N3il
Nov 9 at 9:56












I changed my answer. Please take a look.
– Wojtman
Nov 9 at 10:23




I changed my answer. Please take a look.
– Wojtman
Nov 9 at 10:23












A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
– MickeyO-N3il
Nov 9 at 10:59




A bit tricky to align the controls in the second grid with my other controls (in my "bigger" window) but it will work. Thank you.
– MickeyO-N3il
Nov 9 at 10:59


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53222610%2funexpected-auto-grid-column-width%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word