DataTemplate AutoGenerateColumns="True"

2 posts, 0 answers
  1. Martin
    Martin avatar
    2 posts
    Member since:
    Sep 2011

    Posted 01 Dec 2011 Link to this post

    I'm using the Lightweight Datatable with

    AutoGenerateColumns

    ="True"

     


    Datatyp of the Cells is as CutsomObject with Properties like:

    Value, Align Bolt

    No i like to set a DataTemplate...  but it seems to by useless, the Binding is not on the Value, it shwos in every Cell the ObjectType

    <tg:RadGridView x:Name="TestGrid" Grid.Row="2" Style="{StaticResource DataGridStyle}" AutoGenerateColumns="True" ItemsSource="{Binding ResultSet, Mode=TwoWay}"  >
        <tg:RadGridView.ItemTemplate>                    
            <DataTemplate>
                <TextBlock Text="{Binding Value}"></TextBlock>
            </DataTemplate>
        </tg:RadGridView.ItemTemplate>
    </tg:RadGridView>
  2. Martin
    Martin avatar
    2 posts
    Member since:
    Sep 2011

    Posted 04 Dec 2011 Link to this post

    http://www.4shared.com/file/E9SP7geG/Lightweight-DataTablePr.html]Lightweight-DataTablePr.zip

    a sample project, to demonstrate my Problem..
    I may not belive that I'm the only one with this need ?

    Thanks for your Help
Back to Top