Is there a way to be able to capture when users modify which fields they want to view in the xam datagrid by using the field chooser window?
I have a xamdatagrid which contains child records that have the exact same columns as the parent row. They are also lined up exactly the same.
Currently, if the user removes a column to view, the parent row will remove the column, but the child row will not, so there is a break in the way my columns are lined up.
Hello Peter,
I am just checking if you require any further assistance on the matter.
Thank you for your post. I have been looking into your requirement and you could find all the visible fields when changing the state of your fields in the field choose handling the PropertyChanged event of the FieldLayout like e.g.:
private void xamDataGrid1_FieldChooserOpening(object sender, Infragistics.Windows.DataPresenter.Events.FieldChooserOpeningEventArgs e)
{
e.FieldChooser.CurrentFieldGroup.FieldLayout.PropertyChanged += FieldLayout_PropertyChanged;
}
void FieldLayout_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
var allVisibleFields = (sender as FieldLayout).Fields.Where(f => f.Visibility == System.Windows.Visibility.Visible);
Let me know, if you need any further assistance on this matter.