当前位置:网站首页>Tree list under winfrom treelist related
Tree list under winfrom treelist related
2022-06-13 07:03:00 【AndroidOrCSharp】
To achieve such an effect , Parent and child nodes are associated

//InitializeComponent In file
private Hiiso.Component.TreeControlList dgvtc;
this.dgvtc = new Hiiso.Component.TreeControlList();
//CS In file
public void LoadData(string workdate,string tano)
{
BPDaily bpDaily = new BPDaily();
if (bpDaily.GetTABackMoneyDetail(workdate, tano))
{
dgvtc.DataSource = bpDaily.RetTable;
dgvtc.KeyFieldName = "ID";
dgvtc.ParentFieldName = "PID";
dgvtc.Hiiso_ColumnField = bpDaily.RetColumn;
dgvtc.CollapseAll();
}
else
{
MessageBox.Show(" Query exception :" + bpDaily.RetMsg);
}
}TreeList summary
1. The requirements of the form : If a parent-child relationship is required , Must have ID and ParentID Field , And the parent node ParentID Field Must point to ID Field , If ID repeat , Will be submitted to the Keywords in the dictionary :“E99095” The keywords added :“E99095” Such a mistake .
2.Access The form is going through DATATABLE When , To show a parent-child relationship , Parent and child fields must be of the same data type .
3.Dev Strictly case sensitive
4. Data before presentation , do ID( The only value , And it's basically a mix of father and son ID Mixed fields for , So the table structure is not clear ), Add another BSM Auxiliary fields are used to display parent-child nodes , The value of this field can be repeated , Not subject to the primary key condition .
4.RUN Designer Display column order can be edited in (Visible Index), The index column will now be displayed in the first index .
Two very important words :
dgvtc.KeyFieldName = "CategoryId";// Set primary key
dgvtc.ParentFieldName = "ParentId";// Set the parent primary key
We will continue to add ~~~
边栏推荐
- Select all select none JS code implementation
- How to write an amazing design document?
- Will the chain 2+1 model be a new business outlet and a popular Internet e-commerce market?
- 如何从头自己制作开发板?图文并茂,一步步操作给你看。
- Chain 2+1 reward, what kind of mode is beautiful everyday seconds?
- [turn to] FPGA interview questions
- How to make a development board from scratch? Illustrated and illustrated, step by step operation for you to see.
- YOLOv5解析 | 参数与性能指标
- Micro isolation (MSG)
- Normalizing y-axis in histograms in R ggplot to proportion
猜你喜欢

What is the essence of social e-commerce disruption? How can businesses get more traffic?

Continuous management design

数字时代进化论

Eureka server multi node deployment

简单了解C语言基本语

Periodontitis investigation (ongoing)
![[cloud native | kubernetes] kubernetes configuration](/img/cb/20595d34a9e203b83dd086cc27037d.png)
[cloud native | kubernetes] kubernetes configuration

105. 从前序与中序遍历序列构造二叉树

WWDC2022最大的亮点: MetalFX

RT thread simulator lvgl control: button button style
随机推荐
Detailed description of drawing ridge plot, overlapping densities of overlapping kernel density estimation curve, facetgrid object and function sns Kdeplot, function facetgrid map
Test development programmers, are you still confused? You can't define yourself as a yard farmer
Micro isolation (MSG)
Why does TCP establish three handshakes and four waves
An article allows you to quickly understand the fission growth password of social e-commerce user marketing and avoid stepping on the pit
百货中心供应链管理系统
How to seize the bonus of social e-commerce through brand play to achieve growth and profit?
【RS-422与RS-485】RS-422与RS-485串行接口标准
2022-06-12:在N*N的正方形棋盘中,有N*N个棋子,那么每个格子正好可以拥有一个棋子。 但是现在有些棋子聚集到一个格子上了,比如: 2 0 3 0 1 0 3 0 0 如上的二维数组代表,一
Learning notes of MySQL series by database and table
Department store center supply chain management system
Jinglianwen Technology: current situation and solutions of data acquisition and labeling industry
Computer network interview questions
How to make a development board from scratch? Illustrated and illustrated, step by step operation for you to see.
通过函数seaborn.cubehelix_palette生成顺序调色板
Is it safe for Hangzhou Securities to open an account?
June 12, 2022: if there are n*n pieces in an n*n square chessboard, each grid can have exactly one piece. But now some pieces are gathered on a grid, such as 2030100300. The above two-dimensional arra
[weak transient signal detection] matlab simulation of SVM detection method for weak transient signal under chaotic background
10 Honest Facts I Want To Share With All Junior Developers
1154. 一年中的第几天