PageConfigurationUIDataGridConfiguration_LayoutUpdated Method |
Namespace: SOWIWin.Helper
/// <summary> /// Event layout updated: data grid sets columns (visibility) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void DataGridConfiguration_LayoutUpdated(object sender, EventArgs e) { if (this.DataGridConfiguration.Columns.Count != 0) { foreach (var item in this.DataGridConfiguration.Columns) { switch (item.Header.ToString()) { case "Email": // is an object case "SMTP": // is an object case "Filename": // is a get property case "Path": // is a get property item.Visibility = System.Windows.Visibility.Hidden; break; default: break; } } } }