This is a migrated thread and some comments may be shown as answers.

[Solved] That notorious extra column

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Erik
Top achievements
Rank 1
Erik asked on 31 Jan 2011, 05:38 PM

<Grid x:Name=
"LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
  
        <StackPanel Grid.Row="0" Grid.Column="0">
            <grid:RadGridView x:Name="radGrid1" ColumnWidth="*" HorizontalAlignment="Stretch" AutoGenerateColumns="True" IsReadOnly="True">
            <i:Interaction.Behaviors>
                <local:EmptyDataTemplateBehavior>
                    <local:EmptyDataTemplateBehavior.EmptyDataTemplate>
                        <DataTemplate>
                            <TextBlock Text="No results found!" Foreground="White"  HorizontalAlignment="Center"  VerticalAlignment="Center" Visibility="{Binding MessageVisibility}" />
                        </DataTemplate>
                    </local:EmptyDataTemplateBehavior.EmptyDataTemplate>
                </local:EmptyDataTemplateBehavior>
            </i:Interaction.Behaviors>
        </grid:RadGridView>
  
            <Button x:Name="Button2" Width="300" Height="60" Margin="40" Click="Button2_Click"></Button>
  
  
        </StackPanel>
  
  
    </Grid>
I'm trying to get that extra column removed and added in the ColumnWidth = "*" with no luck.  It still showed the extra column.  Is there something about me using a StackPanel that maybe causing this?

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 01 Feb 2011, 05:23 PM
Hello Erik,

 
I have just tested your code snippet and everything works fine by my side. Can you please check the attached project and let me know how it differs from yours? In addition to this you can submit a support ticket where you can attach a sample application which can help us to investigate the issue by our side. 

Best wishes,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Erik
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or