顺德职业技术学院学报
順德職業技術學院學報
순덕직업기술학원학보
JOURNAL OF SHUNDE POLYTECHNIC
2015年
1期
5-10
,共6页
MRP%自定义控件%树视图控件
MRP%自定義控件%樹視圖控件
MRP%자정의공건%수시도공건
MRP%self-defined control%tree-structured control
MRP数据库中的数据之间存在多层从属关系,实际应用中既要显示数据的树状结构,也要显示数据的细节,但现有控件对开发的支持度不够。设计一个继承自DataGridView的自定义控件─TreeGrid,融合了TreeView和DataGridView的显示风格,能对传入的数据进行预处理,形成分层结构,并在此基础上,实现数据的分层网格显示,方便用户直观地展开和收缩层级数据,进行数据的增删改查操作,也使程序开发者能够按需调用,提高开发效率。
MRP數據庫中的數據之間存在多層從屬關繫,實際應用中既要顯示數據的樹狀結構,也要顯示數據的細節,但現有控件對開髮的支持度不夠。設計一箇繼承自DataGridView的自定義控件─TreeGrid,融閤瞭TreeView和DataGridView的顯示風格,能對傳入的數據進行預處理,形成分層結構,併在此基礎上,實現數據的分層網格顯示,方便用戶直觀地展開和收縮層級數據,進行數據的增刪改查操作,也使程序開髮者能夠按需調用,提高開髮效率。
MRP수거고중적수거지간존재다층종속관계,실제응용중기요현시수거적수상결구,야요현시수거적세절,단현유공건대개발적지지도불구。설계일개계승자DataGridView적자정의공건─TreeGrid,융합료TreeView화DataGridView적현시풍격,능대전입적수거진행예처리,형성분층결구,병재차기출상,실현수거적분층망격현시,방편용호직관지전개화수축층급수거,진행수거적증산개사조작,야사정서개발자능구안수조용,제고개발효솔。
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.