Sample source code
In the past, we used the powerful functions of the system. Windows. Forms. DataGrid Control to create a curriculum control with strong functions. You can complete the WYSIWYG Course Arrangement function.
The coursetable class is a class that fully implements displaying a curriculum with different styles and styles. The hisoniccoursetable class is derived from coursetable and adds a curriculum class that supports the Intelligent Course Arrangement process. Coursetable draws the curriculum with the help of the other two classes. The first is the tablerowheadercolumn class, which is used to control the first two columns of information in each row of the curriculum; the second is the coursecommoncolumn class, which is used to implement normal curriculum information columns. You can control the background color of the entire curriculum, or the background color and foreground color of a cell. You can set the column width and Row Height.