/// <summary> /// We need to make counters dirty when the record has changed since the custom counters need /// to be recalculated for subsequent records. Also, the grid needs to be redrawn. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void engine1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e) { if (e.Action == CurrentRecordAction.EndEditComplete) { e.Record.InvalidateCounterBottomUp(); } }
/// <summary> /// Fill in visible custom counter. This event is called for every visible record in the table. The CustomCounter /// will increase only for records that meet filter criteria. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> /// <summary> /// We need to make counters dirty when the record has changed since the custom counters need /// to be recalculated for subsequent records. Also, the grid needs to be redrawn. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e) { if (e.Action == CurrentRecordAction.EndEditComplete) { e.Record.InvalidateCounterBottomUp(); this.gridGroupingControl1.Refresh(); } }