Visual Studio.Net 2003 and DataGrids
Hi All,
I am trying to create a DataGrid for a weekly employee schedule. While the columns would be statically set to the days of the week, the rows should show the employees and their scheduled times on each day. I am using Visual C++ Forms to create the DataGrid.
The database containing the employees is just a simple file that is loaded into a struct on start-up of the program.
I have been studying the msdn files to find out how to set up the DataGrid, bind it to a data source and load the grid with the necessay info. I have also checked numerous tutorials on how to do this. Most of the tutorials are domain specific such as, using sql data bases or extracting xml file info. I am finding the various information a bit discombobulated, thus hard to pinpoint what I really need to do.
So far, I have set up a class called ScheduleTable to deal with initializing the table schema. At this point, it is supposed to add a couple of columns to the table. But, I can't figure out how to make the table initialize to this schema.
Once I have figured out how to initialize the table, I need to figure out how to load the data from the employee struct. I'm sure that this task can be accomplished through the DataBindings properties. But, since my data comes from a struct, I am unsure how the struct will relate to the DataBindings properties.
Could anyone help me sift through the information overload so that I can first, initialize the schema, and second, load the table from my struct.
If you need anymore info to help me, just ask. I have not provided the source code since it compiles and my main problem lies in the linking of the schema to the DataGrid. For this problem, I have no code available.
Thanks to all who have tips or hints that I could use.