首页 > 其他 > 详细

GridControl 获取某分组的第一个孩子

时间:2014-01-24 06:06:41      阅读:399      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣
int iGroupRowHandle = this.gridControlView.FocusedRowHandle;

            if (iGroupRowHandle < 0)
            {
                int iChildCount = this.gridControl.GetChildRowCount(iGroupRowHandle);
                if (iChildCount > 0)
                {
                    int childRowHandle = this.gridControl.GetChildRowHandle(iGroupRowHandle,0);
                    if (childRowHandle > -1)
                    {
                      object objFirstChild=   this.gridControl.GetRow(childRowHandle);
                      if (objFirstChild != null)
                      {
                          //MessageBox.Show(objFirstChild.ToString());
                      }
                    }
                }
            }

或使用下面来获取一个分组里的第一行
int iFirstChildRowHandle = this.gridControl.GetDataRowHandleByGroupRowHandle(iGroupRowHandle);
            if (iFirstChildRowHandle > -1)
            {
 
            }
bubuko.com,布布扣

GridControl 获取某分组的第一个孩子

原文:http://www.cnblogs.com/quietwalk/p/3531652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!