摘要
MRP数据库中的数据之间存在多层从属关系,实际应用中既要显示数据的树状结构,也要显示数据的细节,但现有控件对开发的支持度不够。设计一个继承自Data Grid View的自定义控件─Tree Grid,融合了Tree View和Data Grid View的显示风格,能对传入的数据进行预处理,形成分层结构,并在此基础上,实现数据的分层网格显示,方便用户直观地展开和收缩层级数据,进行数据的增删改查操作,也使程序开发者能够按需调用,提高开发效率。
There is a multilayer dependent relationship between the data in the MRP database, and in real application, not only the tree structure but also the details of the data need to be displayed. However, the existing control can not meet the requirement. In this paper, a self-defined Treegrid control was designed after the DataGrid View, blending the display styles of both the TreeView and DataGridView. And it is able to preprocess the incoming data and form a hierar-chical structure. On this basis, the layered grid display of data is realized, and it is convenient for users to expand or con-tract the leveled data, and to do data adding or deleting operations. Meanwhile, the program developers can make full use of this function according to their demands, thus improving the development efficiency.
出处
《顺德职业技术学院学报》
2015年第1期5-10,共6页
Journal of Shunde Polytechnic
关键词
自定义控件
树视图控件
MRP
MRP
self-defined control
tree-structured control