//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void ResultsGrid_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(FIN_BankAccount).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }
//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void dgv_EmployeePD_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(HR_EMPLOYEE_PD).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }
//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void dgv_ProfitLoss_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(FIN_ProfitLostType).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }
//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void dgv_LastTransactionInfo_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(HR_EMP_WORK_EXPERIENCE).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }
//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void dgv_NonCashBenefit_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(HR_NONCASH_BENEFIT).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }
//Stop generating columns for fields which don't have the [DataMember] attribute;See entity.cs //This is used to hide fields like EnteredUser,EnteredData etc; void dgv_TransportDetail_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e) { if (!Attribute.IsDefined(typeof(HR_EMP_TRANSPORT).GetProperty(e.PropertyName), typeof(DataMemberAttribute))) { e.Cancel = true; } e.Column.Header = Helper.FormatHeaders(e.PropertyName, false); }