void ShowColumnsAA() { // --- get columns CTemplate_method_aaFactory faTemplate_method_aa = new CTemplate_method_aaFactory(); Methods oMethods = new Methods(); gcMethodsDetail.DataSource = oMethods.GetMethodsAbsorcionAtomica(Convert.ToInt32(gvMethods.GetFocusedRowCellValue(gcMet_Idtemplate_method))); // --- set caption columns cvMethodsDetail.Columns["Idtemplate_method"].Caption = ""; cvMethodsDetail.Columns["Num_version"].Caption = "Versión"; cvMethodsDetail.Columns["Cod_template_method"].Caption = "Código"; cvMethodsDetail.Columns["Name_repetition"].Caption = "N°Repeticiones"; cvMethodsDetail.Columns["Title"].Caption = "Título"; cvMethodsDetail.Columns["Abbreviation"].Caption = "Abreviación"; cvMethodsDetail.Columns["Name_type_analysis"].Caption = "Tipo de análisis"; cvMethodsDetail.Columns["Name_type_sample"].Caption = "Tipo de muestra"; cvMethodsDetail.Columns["Name_digestion"].Caption = "Tipo de digestión"; cvMethodsDetail.Columns["Name_unit_result"].Caption = "Unidad"; cvMethodsDetail.Columns["Weight"].Caption = "Peso"; cvMethodsDetail.Columns["Volumen"].Caption = "Volumen"; cvMethodsDetail.Columns["Reading_min"].Caption = "Lectura Mínima"; cvMethodsDetail.Columns["Reading_max"].Caption = "Lectura Máxima"; cvMethodsDetail.Columns["Dilution2"].Caption = "Dilución2"; cvMethodsDetail.Columns["Dilution3"].Caption = "Dilución3"; cvMethodsDetail.Columns["Reason_rep"].Caption = "Razón Repetibilidad"; cvMethodsDetail.Columns["Law_limit_bottom"].Caption = "Ley Mínima"; cvMethodsDetail.Columns["Law_limit_top"].Caption = "Ley Máxima"; cvMethodsDetail.Columns["Name_unit_calib"].Caption = "Unidad de calibración"; // --- set visible columns cvMethodsDetail.Columns["Idtemplate_method"].Visible = false; cvMethodsDetail.Columns["Num_version"].Visible = true; cvMethodsDetail.Columns["Cod_template_method"].Visible = true; cvMethodsDetail.Columns["Name_repetition"].Visible = true; cvMethodsDetail.Columns["Title"].Visible = true; cvMethodsDetail.Columns["Abbreviation"].Visible = true; cvMethodsDetail.Columns["Name_type_analysis"].Visible = true; cvMethodsDetail.Columns["Name_type_sample"].Visible = true; cvMethodsDetail.Columns["Name_digestion"].Visible = true; cvMethodsDetail.Columns["Name_unit_result"].Visible = true; cvMethodsDetail.Columns["Weight"].Visible = true; cvMethodsDetail.Columns["Volumen"].Visible = true; cvMethodsDetail.Columns["Reading_min"].Visible = true; cvMethodsDetail.Columns["Reading_max"].Visible = true; cvMethodsDetail.Columns["Dilution2"].Visible = true; cvMethodsDetail.Columns["Dilution3"].Visible = true; cvMethodsDetail.Columns["Reason_rep"].Visible = true; cvMethodsDetail.Columns["Law_limit_bottom"].Visible = true; cvMethodsDetail.Columns["Law_limit_top"].Visible = true; cvMethodsDetail.Columns["Name_unit_calib"].Visible = true; }