Adjust entry in the Grid

I have a Grid with 2 columns, and I want to adjust an Entry in the right column. However, the Entry goes down to the next row and grow to the both columns.

Any way to solve it? I already tried to use a StackLayout like the Entry container, and still does not work.


Best Answer


  • JaviPintorJaviPintor USMember ✭✭
    edited September 2015

    Ok, this is the Grid code:

        <RowDefinition Height="Auto" />
        <ColumnDefinition Width="50*" />
        <ColumnDefinition Width="50*" />
      <Label Grid.Row="0" Grid.Column="0" Text="Cantidad:" FontAttributes="Bold" TextColor="#000000" />
      <Entry Grid.Row="0" Grid.Column="1" Text="{Binding Path=Cantidad, Mode=TwoWay}" />
  • JaviPintorJaviPintor USMember ✭✭

    Looks like the column width=50* is the problem, now with Auto works!

Sign In or Register to comment.