Ejemplo n.º 1
0
        private void dataGrid2_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            DateEvent RowDataContaxt = e.Row.DataContext as DateEvent;

            if ((RowDataContaxt != null) && (RowDataContaxt.EventName != null))
            {
                e.Row.Background = Brushes.Red;
            }
        }
        private void dataGrid2_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            DateEvent RowDataContaxt = e.Row.DataContext as DateEvent;

            if (RowDataContaxt != null)
            {
                if (RowDataContaxt.EventName != null)
                {
                    e.Row.Background = Brushes.Red; //FindResource("GreenBackgroundBrush") as Brush;
                }
                //datagrid.RowBackground = Brushes.Yellow;
            }
        }