Create Datagrid in wpf
How can i create auto generated coloumn and row header in wpf datagrid
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
venu volla9 reputationPosted May 19, 2009, 9:28 PM EDT
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...
sumesh npRank #4,292 · 353 reputationPosted May 29, 2009, 11:53 PM EDT
Thanks for your reply. but i need auto generated column header and row header.