Datagrid in a datagrid cell?

Quite simple public partial class Window1 : Window { DataTable dt = new DataTable(); public Window1() { InitializeComponent(); dt.Columns. Add("AA", typeof(string)); dt.Columns. Add("BB", typeof(string)); dt.Columns.

Add("CC", typeof(string)); dt.Rows. Add("11", "22"); dt.Rows. Add("22", "33"); dt.Rows.

Add("33", "44"); dataGrid1. ItemsSource = dt. DefaultView; this.

DataGrid1. RowDetailsVisibilityChanged += new EventHandler(datagrid1_RowdetailsVisibilityChanged); } void datagrid1_RowdetailsVisibilityChanged(object sender, Microsoft.Windows.Controls. DataGridRowDetailsEventArgs e) { Microsoft.Windows.Controls.

DataGrid innerDataGrid = e. DetailsElement as Microsoft.Windows.Controls. DataGrid; innerDataGrid.

ItemsSource = ((IListSource)dt).GetList(); } in xaml file write the code my:DataGrid. RowDetailsTemplate.

Quite simple... public partial class Window1 : Window { DataTable dt = new DataTable(); public Window1() { InitializeComponent(); dt.Columns. Add("AA", typeof(string)); dt.Columns. Add("BB", typeof(string)); dt.Columns.

Add("CC", typeof(string)); dt.Rows. Add("11", "22"); dt.Rows. Add("22", "33"); dt.Rows.

Add("33", "44"); dataGrid1. ItemsSource = dt. DefaultView; this.

DataGrid1. RowDetailsVisibilityChanged += new EventHandler(datagrid1_RowdetailsVisibilityChanged); } void datagrid1_RowdetailsVisibilityChanged(object sender, Microsoft.Windows.Controls. DataGridRowDetailsEventArgs e) { Microsoft.Windows.Controls.

DataGrid innerDataGrid = e. DetailsElement as Microsoft.Windows.Controls. DataGrid; innerDataGrid.

ItemsSource = ((IListSource)dt).GetList(); } in xaml file write the code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions