private void LoadData(eHelpType type) { try { this._dt = vmMas.GetConditionReportWPLDialog(); this.gvDetail.DataSource = this._dt; } catch (Exception ex) { rMessageBox.ShowException(this, ex); } }
public HelpFillDataDialog(eHelpType type, string separate = ",") { InitializeComponent(); this._separate = separate; this.gvDetail.SetOISStyle(DataGridViewEditMode.EditOnEnter); this.gvDetail.MappingEnum(typeof(eCol)); this.gvDetail.Columns[(int)eCol.IS_SELECT].ReadOnly = false; this.gvDetail.Columns[(int)eCol.CODE].ReadOnly = true; this.gvDetail.Columns[(int)eCol.DATA_VALUE].ReadOnly = true; this.LoadData(type); }