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

DataTemplate AutoGenerateColumns="True"

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 01 Dec 2011, 12:43 PM
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>

1 Answer, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 04 Dec 2011, 12:02 PM
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
Tags
GridView
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Share this question
or