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)
            {
 
            }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
猜你喜欢
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-10-18
相关资源
相似解决方案