TreeList recorded in DevExpress, devexpress
As shown in the two figures: to display the vertical lines on the left, you need to set
Thanks to DoomGuards
This section Dome: http://pan.baidu.com/s/1wBOJk password: vz4d
When devexpress treelist is bound to data, some nodes are selected by default.
DataTable dtTree = new DataTable (); dtTree. columns. add ("ID", typeof (string); dtTree. columns. add ("Code", typeof (string); dtTree. columns. add ("Name", typeof (string); dtTree. columns. add ("Description", typeof (string); dtTree. columns. add ("ParentID", typeof (string); // the newly added Boolean column type can be bound to the checkbox dtTree. columns. add ("Tag", typeof (bool); dtTree. columns. add ("Happy", typeof (string ));
DataRow row = dtTree. newRow (); row ["ID"] = "1"; row ["Code"] = "001"; row ["Name"] = ""; row ["Description"] = ""; row ["ParentID"] = "-1"; row ["tag"] = false; row ["Happy"] = "love to eat green peppers"; dtTree. rows. add (row );
DataRow row2 = dtTree. newRow (); row2 ["ID"] = "2"; row2 ["Code"] = "002"; row2 ["Name"] = ""; row2 ["Description"] = ""; row2 ["ParentID"] = "-1"; row2 ["tag"] = false; row2 ["Happy"] = "love to eat green peppers"; dtTree. rows. add (row2 );
DataRow row3 = dtTree. NewRow (); row3 [... the remaining full text>
How does devexpress treelist determine the value change of one column and the value of the other column changes?
If your data source is datatable, you can use the ColumnChanged event to change the value. Otherwise, you can set ColumnEdit for the column and set it through EditValueChanged.