private void BRecord_Click(object sender, EventArgs e) { MyData.FillMyData(MyListData, 10); teeGrid1.Data = new VirtualListData <Person>(MyListData); teeGrid1.Columns["BirthDate"].DataFormat.DateTime = "dd-MM-yyyy"; SetExpander("Name", teeGrid1.Rows); teeGrid1.Footer.Clear(); ColumnTotals tmp = Totals(teeGrid1.Footer); TotalsHeader.CreateTotals(teeGrid1.Footer, tmp); AddSampleFooter(); SampleHeader?.Dispose(); SampleHeader = NewTitle(teeGrid1.Headers, "Header Sample" + Environment.NewLine + "Text"); SampleHeader.Index = 0; SetupCellEditors(); teeGrid1.CellEditing += GridCellEditing; }
private void DetailNewGroup(object sender, Steema.TeeGrid.RowGroup.NewDetailEventArgs e) { ColumnTotals tmpTot = new ColumnTotals(e.NewGroup.Footer); tmpTot.Calculation.Add(e.NewGroup.Columns[0], ColumnCalculation.Count); tmpTot.Calculation.Add("EmployeeID", ColumnCalculation.Sum); TotalsHeader.CreateTotals(e.NewGroup.Footer, tmpTot); }