This question is locked. New answers and comments are not allowed.
Hi
We are having difficulty on dynamically set the visibility of gridview column. My project is using mvvm with boolean property that is bind to the visibility of the datagrid column.
The viewmodel is binded to the view on the codebehind. See code below.
Note: we should not use the bind coding below for some reason in our prism.
Please help. I hope you could send me example code to solve the issue.
We are having difficulty on dynamically set the visibility of gridview column. My project is using mvvm with boolean property that is bind to the visibility of the datagrid column.
The viewmodel is binded to the view on the codebehind. See code below.
Public Sub New(ByVal viewModel As vwmAllergen)
InitializeComponent()
LayoutRoot.DataContext = viewModel
End Sub
Note: we should not use the bind coding below for some reason in our prism.
<UserControl.Resources>
<ViewModels:vwmAllergen x:Key="ViewAllergen" />
</UserControl.Resources>
Please help. I hope you could send me example code to solve the issue.