GDBG - Hierarchical grid shows + when no children present

Is there an event that I can handle to make the display of this column accurate? I tried the CellDrawn code in one of the samples posted here (see below) but it must be firing constantly as I can barely even get my context menu to display. ------------------------------------------------- if (e.ColIndex == 1) { GridBoundRecordState state = this.Binder.GetRecordStateAtRowIndex(e.RowIndex); if (state.HasChildList && state.ChildCount == 0) { bool boolIsExpanded = this.IsExpandedAtRowIndex(e.RowIndex); this.BeginUpdate(); this.Model.SuspendChangeEvents(); this.ExpandAtRowIndex(e.RowIndex); this.CollapseAtRowIndex(e.RowIndex); this.Model.ResumeChangeEvents(); this.EndUpdate(); this.Invalidate(e.Bounds); } }

1 Reply

ST stanleyj Syncfusion Team January 26, 2006 09:56 AM UTC

Hi Lori, I think you are using 3.3, this bug is fixed in 4.1. Defect #872 - All rows display a plus or minus regardless of their state( i.e. no children) v4.1 final release is available for download. Please refer to the following link for more information in this regard : http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=40022 Best regards, Stanley

Loader.
Up arrow icon