To get a deeper understanding and use of C #, we will begin this series of technical lectures on the "C # Discovery Tour". Given that most of you are in the Web database development, and the so-called discovery is found that we are unfamiliar with the field, so this series of lectures will be C # in the Web database development outside the application. The main content of the current planning is graphic development and XML development, and plans to organize a number of courses. In the next C # Discovery Tour, we follow the step-by-step steps to explore and discover the other unknown areas of C #, a deeper understanding and mastery of the use of C # for software development, broaden our horizons, enhance our comprehensive software development capabilities.
This article supporting the source code, which is the cellviewlib.zip of this course is the demo.
Course description
In the last lesson, we studied the use of C # to develop a simple oval button control, initial contact with C # Graphics development, in this course we will continue to delve into the C # graphics development, try to use C # to develop a slightly more complex data grid control.
Functional Requirements
Now customers require the development of a graphics software, its software functional requirements are
Displays the text content of a data table using a screen format interface.
You can set the height of the grid row, and the cell width automatically adapts to the size of the text content. Displays scroll bars when the content is displayed more than once.
Users can use mouse clicks to select a cell, or you can drag and drop the mouse to select multiple cells.
The text of the selected cell can be copied.
The last software developed has its user interface as shown in the figure