随笔 - 4  文章 - 0  评论 - 1 
  2009年7月7日

想要实现主表一行在对应的从表中有数据时,则加号显示;

无数据时,则不显示加号。(如果父表的某行关系到子表没有记录的话,把"+"去掉)

    foreach (UltraGridRow row in this.UG_BalanceBillList.Rows.GetRowEnumerator(Infragistics.Win.UltraWinGrid.GridRowType.DataRow, this.UG_BalanceBillList.DisplayLayout.Bands[0], null))
            {
                if (!row.HasChild())
                { row.Expanded = true; }
            }

posted @ 2009-07-07 11:19 草样绿想 阅读(102) 评论(0) 编辑