private void Gc1_SourceListListChangedCompleted(object sender, TableListChangedEventArgs e) { var r = this.gc1.TableModel.RowCount; var p = this.gc1.TableModel.Rows.Model.RowCount; GridSummaryRow rec = this.gc1.Table.DisplayElements[r] as GridSummaryRow; GridRecordRow row = this.gc1.Table.DisplayElements[r] as GridRecordRow; if (row is GridRecordRow) { MessageBox.Show("row"); } if (rec is GridSummaryRow) { foreach (var scd in rec.SummaryRowDescriptor.SummaryColumns) { if (scd.Name == "Machine Hours Remaining") { txtMachine.Text = GridEngine.GetSummaryText(rec.ParentGroup, scd); } else if (scd.Name == "Weld Hours Remaining") { txtWeld.Text = GridEngine.GetSummaryText(rec.ParentGroup, scd); } else if (scd.Name == "Build Hours Remaining") { txtBuild.Text = GridEngine.GetSummaryText(rec.ParentGroup, scd); } else if (scd.Name == "Tracker Hours Remaining") { txtTrackers.Text = GridEngine.GetSummaryText(rec.ParentGroup, scd); } else if (scd.Name == "Design Hours Remaining") { txtDesign.Text = GridEngine.GetSummaryText(rec.ParentGroup, scd); } } } }
private void gc1_SourceListListChangedCompleted(object sender, TableListChangedEventArgs e) { this.gc1.TableControl.Invalidate(); machinehrs = 0; }