예제 #1
0
 public virtual void OnCustomFooterVisible(HideFooterEventArgs e)
 {
     if (CustomFooterVisible != null)
     {
         CustomFooterVisible(this, e);
     }
 }
예제 #2
0
        private void RaiseHideGroupFooter(HideFooterEventArgs args)
        {
            MyGridView view = View as MyGridView;

            if (view != null)
            {
                view.OnCustomFooterVisible(args);
            }
        }
 void myGridView1_CustomFooterVisible(object sender, HideFooterEventArgs e)
 {
     if (checkEdit1.Checked)
     {
         if (e.ChildRowsCount == 1)
         {
             e.FooterVisible = false;
         }
     }
 }
예제 #4
0
        public bool HidingGroupFooters(int rowHandle, int footerLevel)
        {
            if (rowHandle == -2147483648)
            {
                return(true);
            }

            HideFooterEventArgs args = new HideFooterEventArgs(View.GetChildRowCount(rowHandle));

            RaiseHideGroupFooter(args);
            if (CurentFooterLevel == footerLevel)
            {
                return(args.FooterVisible);
            }
            int n = View.GetParentRowHandle(rowHandle);

            if (n < 0 && n != -2147473648)
            {
                CurentFooterLevel--;
                return(HidingGroupFooters(n, footerLevel));
            }
            return(true);
        }