I'm creating an WPF application where I need to dynamically make a grid. The grid headers will be different every time based on information in the text file and I will only need this grid if the user opens it.
So right now, I'm able to brows for a file and get the path. Then after I create a datagrid, like this:
//Create a new data grid DataGrid datagrid1 = new DataGrid(); Master.Children.Add(datagrid1); Grid.SetRow(datagrid1, 1); Grid.SetColumn(datagrid1, 1);
Now, I have issues accessing the file and populating the grid. How would I be able to do this in C#?