browsable

C# Dynamic Attribute Arguments

Is there a way to do the following? I see that the Attribute Arguments must be a constant expression, so how would I work around this? If I dont want to load some properties into a datagridview using binding, whats the next best alternative? class TestObj { private bool isBrowsable = false; [Browsable(isBrowsable)] ...

.NET Property Grid - setting Browsable (bool) using App.config

Hello I would like to be able to set the visibility of a property on my property grid using App.config. I have tried : [Browsable(bool.Parse(Sytem.Configuration.ConfigurationSettings.AppSettings["testBool"]))] However Visual Studio 2008 would give me an error "An attribute argument must be a constant expression, typeof expression or a...

WPF toolkit DataGrid show fields even with browsable attribute set to false

Hi Hi have an observable collection that I bind to a DataGrid using the itemsource property of the DataGrid. All the properties of the class inside the collection are displayed properly in the DataGrid. Now, I want to hide some fields to the DataGrid using the browsable attribute [Browsable(false)] in the class. It works well in winfor...