Hi Klaus,
On creating your own cellType DataBoundRowExpandCell that is used internally by deriving GridDataBoundRowExpandCellModel and GridDataBoundRowExpandCellRenderer, drawing the icon and style of treelines are possible. If you have the source code, you can take our code in \Src\Extensions\DataBound\GridDataBoundTreeCell.cs, and tweak it to draw the extra bitmap and set styles for the Pen to DrawLine.
Then add the celltype through CellModels.Add function.
this.gridDataBoundGrid1.Model.CellModels.Remove("DataBoundRowExpandCell");
this.gridDataBoundGrid1.Model.CellModels.Add("DataBoundRowExpandCell", new ExpandTreeLinesCellModel(this.gridDataBoundGrid1.Model));
drawing the icon
==========
In the GridDataBoundRowExpandCellRenderer, the images can be added to cell after the +/- button using GridStaticCellRenderer.DrawImage function in OnDrawCellButton overrides and in the CellDrawn event.
Drawing the icon is also possible without deriving GridDataBoundRowExpandCellRenderer, but using the DrawCellDisplayText as discussed in this thread below.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=37142
changing order of columns
==================
You can programatically change the column order only for the first header row. However using the layout column, by rearranging it even the header row below can be moved. Please refer the thread below.
http://www.syncfusion.com/support/forums/message.aspx?MessageID=39323
style of treelines
===========
In the GridDataBoundRowExpandCellRenderer, the Pen that is used in DrawLine can be formatted.
Pen p = new Pen(LineColor)
p.DashStyle = DashStyle.Dot;
Here is the sample implementing these.
Best regards,
Stanley