private void fGrid_AfterAutoGroupRowCreated(object sender, iGAfterAutoGroupRowCreatedEventArgs e)
        {
            iGCell myGroupRowCell = fGrid.RowTextCol.Cells[e.AutoGroupRowIndex];

            myGroupRowCell.Row.AutoHeight();
            iGCell myFirstCellInGroup = fGrid.Cells[e.GroupedRowIndex, "svalue"];

            myGroupRowCell.Value   = string.Format("{0}   ::  {1}", myFirstCellInGroup.Value.ToProperCase(), m_GroupTotal[myFirstCellInGroup.Text].ToNumberDisplayFormat());
            myGroupRowCell.Row.Key = myFirstCellInGroup.Text;
            myGroupRowCell.Row.RowTextCell.Row.Key = myFirstCellInGroup.Text;
            myGroupRowCell.Row.TextAlign           = iGContentAlignment.MiddleLeft;
        }
        private void fGrid_AfterAutoGroupRowCreated(object sender, iGAfterAutoGroupRowCreatedEventArgs e)
        {
            iGrid  _grid          = sender as iGrid;
            iGCell myGroupRowCell = _grid.RowTextCol.Cells[e.AutoGroupRowIndex];

            myGroupRowCell.Row.AutoHeight();
            ic.church_groupC _gp       = _grid.Rows[e.GroupedRowIndex].Tag as ic.church_groupC;
            string           _disp_str = string.Empty;

            if (_gp != null)
            {
                _disp_str = datam.DATA_CG_TYPES[_gp.cg_type_id].cg_type_name;
            }
            myGroupRowCell.Value    = _disp_str;
            myGroupRowCell.AuxValue = _gp.cg_type_id;
        }
Exemplo n.º 3
0
        void g_AfterAutoGroupRowCreated(object sender, iGAfterAutoGroupRowCreatedEventArgs e)
        {
            iGrid objfgrid = sender as iGrid;

            if (objfgrid == null)
            {
                return;
            }
            iGCell myGroupRowCell = objfgrid.RowTextCol.Cells[e.AutoGroupRowIndex];

            myGroupRowCell.Row.AutoHeight();
            myGroupRowCell.Row.Height     = myGroupRowCell.Row.Height + 3;
            myGroupRowCell.Row.Selectable = false;
            iGCell myFirstCellInGroup = objfgrid.Cells[e.GroupedRowIndex, "category"];

            myGroupRowCell.Row.Key       = string.Format("GP{0}", objfgrid.Cells[e.GroupedRowIndex, "svalue"].Value.ToInt32());
            myFirstCellInGroup.TextAlign = iGContentAlignment.MiddleCenter;
            myGroupRowCell.Value         = string.Format("{0}", myFirstCellInGroup.Value.ToString());
        }
        private void fGrid_AfterAutoGroupRowCreated(object sender, iGAfterAutoGroupRowCreatedEventArgs e)
        {
            iGrid  _grid          = sender as iGrid;
            iGCell myGroupRowCell = _grid.RowTextCol.Cells[e.AutoGroupRowIndex];

            myGroupRowCell.Row.AutoHeight();
            ic.church_groupC _gp       = _grid.Rows[e.GroupedRowIndex].Tag as ic.church_groupC;
            string           _disp_str = null;
            var _cg_type = datam.DATA_CG_TYPES[_gp.cg_type_id];

            if (_gp != null)
            {
                _disp_str = _cg_type.cg_type_name;
            }
            myGroupRowCell.Value    = _cg_type.is_default ? string.Format("{0} (Default)", _disp_str) : _disp_str;
            myGroupRowCell.AuxValue = _gp.cg_type_id;
            myGroupRowCell.Row.Tag  = _cg_type;
            myGroupRowCell.Row.Key  = string.Format("gp-{0}", _cg_type.cg_type_id);
        }
Exemplo n.º 5
0
        private void fGrid_AfterAutoGroupRowCreated(object sender, iGAfterAutoGroupRowCreatedEventArgs e)
        {
            iGrid objfgrid = sender as iGrid;

            if (objfgrid == null)
            {
                return;
            }
            iGCell myGroupRowCell = objfgrid.RowTextCol.Cells[e.AutoGroupRowIndex];

            myGroupRowCell.Row.AutoHeight();
            myGroupRowCell.Row.Height = myGroupRowCell.Row.Height + 4;
            iGCell myFirstCellInGroup = objfgrid.Cells[e.GroupedRowIndex, m_group_col];

            myGroupRowCell.Row.Key       = string.Format("GP{0}", objfgrid.Cells[e.GroupedRowIndex, "svalue"].Value.ToInt32());
            myGroupRowCell.Row.TextAlign = iGContentAlignment.MiddleLeft;
            myFirstCellInGroup.TextAlign = iGContentAlignment.MiddleCenter;
            myGroupRowCell.Value         = string.Format("{0}", myFirstCellInGroup.Value.ToProperCase());
            combofilter.Items.Add(myGroupRowCell.Text);
            m_GroupedRows.Add(myGroupRowCell.Row.Key);
            OtherGroups.Add(e.GroupedRowIndex - 1);
        }