I want to use a databound grid to navigate a hierarchical tree. When I know that I am on a leave node (current record has no child records), I want to display an 'empty' bitmap in the GridDataBoundRowExpandCell control in stead of a '+' or '-' bitmap.
ADAdministrator Syncfusion Team March 23, 2003 01:52 PM
There may be a better way to handle this. but here is one way.
You can use the DrawCellEvent, and draw this cell yourself. In your code, you would need to check for any childrows for the node, and draw the cell if there are none. One technical problem is that the childrows are not known until the node is expanded. To handle this, you can do a 'blind' expand using BeginUpdate/EndUpdate. Here is a try at this.