Create Datagrid in wpf
How can i create auto generated coloumn and row header in wpf datagrid
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sumesh npPosted May 30, 2009, 3:53 AM
Thanks for your reply. but i need auto generated column header and row header.
venu vollaPosted May 20, 2009, 1:28 AM
hi,
In DataGrid Properties u wil have AutoGenerateColumn field set it to True. Otherwise, u can write that field in your xaml code too...
<
my:DataGrid Margin="18,0,291,12" Name="dataGrid1" xmlns:my="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" ItemsSource="{Binding Path=Table}" AutoGenerateColumns="True">its that simple...