public virtual void OnCustomFooterVisible(HideFooterEventArgs e) { if (CustomFooterVisible != null) { CustomFooterVisible(this, e); } }
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; } } }
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); }