private void RadGridViewType2_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = Application.Current.Resources["consultationStyleSelector2"] as StyleSelector; if (e.Column.Header.ToString() == "SuperSecteurId") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "SecteurId") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "Isin") { e.Column.IsVisible = false; } GridViewDataColumn col = e.Column as GridViewDataColumn; if (col.DataType == typeof(DoubleFormatted)) { col.TextAlignment = TextAlignment.Right; } Helpers.AddToolTips(e.Column as GridViewDataColumn); }
private void ValuesGrid_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = System.Windows.Application.Current.Resources["recommandationStyleSelector"] as StyleSelector; GridViewDataColumn column = e.Column as GridViewDataColumn; if (column.Header.ToString() == "Date") { column.DataFormatString = "dd/MM/yyyy"; } if (e.Column.Header.ToString() == "ISIN") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "ID_ICB") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "ID_FGA") { e.Column.IsVisible = false; } }
private void RadGridPositions_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { if (e.Column.Header.ToString() != "Ticker" && e.Column.Header.ToString() != "Company") { e.Column.TextAlignment = TextAlignment.Right; } Helpers.AddToolTips(e.Column as GridViewDataColumn); }
//Affiche de la date sql to c# private void RadGridView_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = Application.Current.Resources["indicateurStyleSelector"] as StyleSelector; GridViewDataColumn dd = (GridViewDataColumn)e.Column; if (dd.Header.ToString() == "Date") { dd.DataFormatString = "dd/MM/yyyy"; } }
private void RadGridValues_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = Application.Current.Resources["repartitionStyleSelector"] as StyleSelector; if (e.Column.Header.ToString() != "Ticker" && e.Column.Header.ToString() != "Company") { e.Column.TextAlignment = TextAlignment.Right; } if (_viewmodel.ShowGap) { if (e.Column.Header.ToString().Contains("Ecart")) { e.Column.IsVisible = true; } else { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "Ticker" || e.Column.Header.ToString() == "Company") { e.Column.IsVisible = true; } } else { if (e.Column.Header.ToString().Contains("Ecart")) { e.Column.IsVisible = false; } else { e.Column.IsVisible = true; } if (e.Column.Header.ToString() == "Ticker" || e.Column.Header.ToString() == "Company") { e.Column.IsVisible = true; } } Helpers.AddToolTips(e.Column as GridViewDataColumn); }
private void Changes_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = Application.Current.Resources["scoreChangeStyleSelector"] as StyleSelector; GridViewDataColumn column = e.Column as GridViewDataColumn; if (e.Column.Header.ToString() == "Quint1" || e.Column.Header.ToString() == "Quint2" || e.Column.Header.ToString() == "Rang1" || e.Column.Header.ToString() == "Rang2") { e.Column.TextAlignment = TextAlignment.Right; } if (column.Header.ToString() == "Date1") { column.DataFormatString = "dd/MM/yyyy"; } if (column.Header.ToString() == "Date2") { column.DataFormatString = "dd/MM/yyyy"; } }
private void RadGridView_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e) { e.Column.CellStyleSelector = Application.Current.Resources["simulationScoreStyleSelector"] as StyleSelector; if (e.Column.Header.ToString() != "Ticker" && e.Column.Header.ToString() != "Company Name" && e.Column.Header.ToString() != "Crncy" && e.Column.Header.ToString() != "liquidity" && e.Column.Header.ToString() != "Country") { e.Column.TextAlignment = TextAlignment.Right; } if (e.Column.Header.ToString() == "EBIT_MARGIN_NTM") { e.Column.DisplayIndex = 21; } if (e.Column.Header.ToString() == "NET_DEBT_EBITDA_NTM") { e.Column.DisplayIndex = 22; } if (e.Column.Header.ToString() == "ROE_NTM") { e.Column.DisplayIndex = 23; } if (e.Column.Header.ToString() == "Quint Quant") { e.Column.IsVisible = false; } if (vm.SelectedSuperSector != "Financials") { if (e.Column.Header.ToString() == "PBT_SALES_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "PBT_RWA_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "COST_INCOME_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "P_TBV_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "P_TBV_ON_MED5Y") { e.Column.IsVisible = false; } } else if (vm.SelectedSector == "Banks") { if (e.Column.Header.ToString() == "PBT_SALES_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "EBIT_MARGIN_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "NET_DEBT_EBITDA_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "ROE_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "PB_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "PB_ON_MEd5Y") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "FCF_TREND") { e.Column.IsVisible = false; } } else if (vm.SelectedSector == "Insurance") { if (e.Column.Header.ToString() == "EBIT_MARGIN_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "PBT_RWA_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "COST_INCOME_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "ROE_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "NET_DEBT_EBITDA_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "P_TBV_NTM") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "P_TBV_ON_MED5Y") { e.Column.IsVisible = false; } if (e.Column.Header.ToString() == "FCF_TREND") { e.Column.IsVisible = false; } } }