Some time ago I wrote an article about the Function Extension and implementation of the winform DataGrid (which has been written). Some brothers asked for the source code. In July 5, I just came to the company for seven months, in addition to the time for asking for leave, it should be six months. The trial period should be almost over. We provide the support pages, all selections, and column numbers written in the previous time, the DataGrid Control of a set of common functions such as column merge.
Yesterday afternoon, my colleague said that the values of several fields need to be merged into a column in the DataGrid for display. Therefore, the function of Displaying Multiple Field Values in the same column is added, on this basis, you can easily expand the computing result values that display multiple columns.
Before merging:
After merging: (Note the table name)
Merge the three fields into one column for display.
In order to easily edit the custom datagridcloumn column in the designer, the datagridcolumnstyle Set editor is rewritten.
Reserve the copyright information when using and reprinting the source code.
Source code download code generation tool download documentation
RelatedArticle
Function extension and implementation of winform DataGrid (completed)