I have a xamdatagrid and it has 30 columns . i need to hide one column based on certain conditions on certain type. we are using mvvm architecture
How can i achieve it
Tryed this way :
<igDP:Field Name="abc" Label="Scrub Errors Messages" Width="150" Visibility="{Binding abcVisibility}"
and i am binding this value from command through a viewmodel .
ViewModel.abcVisibility = Visibility.Collapsed; Its not working fine ..any other way or sample to solve this
ViewModel.abcVisibility = Visibility.Collapsed;
Its not working fine ..any other way or sample to solve this
Hi cravika,
Let me know if you have any further questions regarding this matter.
The XamDataGrid Field isn't part of the visual tree so it doesn't have a DataContext you can pull properties from for your binding. Take a look at this blog post as it describes a method for binding to a Field property.