Пример #1
0
 /// <summary>
 /// sp取引先_RowCollectionChanged
 /// 表示が変更された場合の疑似イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void sp取引先_RowCollectionChanged(object sender, SpreadCollectionChangedEventArgs e)
 {
     if (InitFlg && sp取引先一括データ.Rows.Count() > 0)
     {
         SumCalculation();
     }
 }
Пример #2
0
 private void sp売上明細データ_RowCollectionChanged(object sender, SpreadCollectionChangedEventArgs e)
 {
     if (sp売上明細データ.Columns[1].Name == null)
     {
         return;
     }
     if (sp売上明細データ.Rows.Count() > 0)
     {
         Summary();
     }
 }
Пример #3
0
        /// <summary>
        /// 行コレクションに変更があった時のイベント処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gcSpreadGrid_RowCollectionChanged(object sender, SpreadCollectionChangedEventArgs e)
        {
            //var spGrid = sender as GcSpreadGrid;
            //Brush enableBrush = new SolidColorBrush(Color.FromRgb(255,248,220));

            //if (isFirst || spGrid.Rows.Count == 0)
            //    return;

            //var row = spGrid.Rows[e.NewStartingIndex];

            //row.Cells[(int)GridColumnsMapping.依頼日].Background = enableBrush;
            //row.Cells[(int)GridColumnsMapping.取引先コード].Background = enableBrush;
            //row.Cells[(int)GridColumnsMapping.枝番].Background = enableBrush;
            //row.Cells[(int)GridColumnsMapping.自社品番].Background = enableBrush;

            //row.Cells[(int)GridColumnsMapping.依頼数].Background = enableBrush;
            //row.Cells[(int)GridColumnsMapping.仕上数].Background = enableBrush;
        }