Example #1
0
        /// <summary>
        /// Handles invocation of AfterExpand events
        /// </summary>
        internal void DoAfterExpandEvent(
            GridPanel gridPanel, GridContainer container, ExpandSource expandSource)
        {
            if (AfterExpand != null)
            {
                GridAfterExpandEventArgs ev = new
                    GridAfterExpandEventArgs(gridPanel, container, expandSource);

                AfterExpand(this, ev);
            }
        }
 private void uiWeeklyDataTable_AfterExpand(object sender, GridAfterExpandEventArgs e)
 {
     e.GridContainer.Rows[0].GridPanel.RowHeaderWidth = 0;
     e.GridContainer.Rows[0].GridPanel.Columns["id"].Width = 19;
     e.GridContainer.Rows[0].GridPanel.Columns["id"].HeaderText = "";
     if (e.GridContainer.Rows[0].GridPanel.Columns["id_Week"] != null)
     {
         e.GridContainer.Rows[0].GridPanel.Columns["id_Week"].Visible = false;
         e.GridContainer.Rows[0].GridPanel.Columns["Date"].Width = 120;
         e.GridContainer.Rows[0].GridPanel.AllowEdit = false;
     }
     if (e.GridContainer.Rows[0].GridPanel.Columns["id_Day"] != null)
     {
         e.GridContainer.Rows[0].GridPanel.Columns["id"].Visible = false;
         e.GridContainer.Rows[0].GridPanel.Columns["id_Day"].Visible = false;
         e.GridContainer.Rows[0].GridPanel.Columns["TimeOpen"].Width = 120;
         e.GridContainer.Rows[0].GridPanel.Columns["TimeClose"].Width = 120;
         e.GridContainer.Rows[0].GridPanel.AllowEdit = false;
     }
 }