Non-visible columns

Aug 19, 2010 at 10:16 AM
Edited Aug 19, 2010 at 10:16 AM

Documentation: 

Visible: Indicates that the column will be seen in the set of results of the query. The default is true but you can turn it off on your anonymous type definition adding "_nv_" in your property name.

Is it a bug in SF that we see the last column in the grid with this query:

            dqm["FindEmployees"] =                
from e in Database.Query<Employee>()                
where e.Deleted == null                
orderby e.Name                
select new              
{                    
Entity = e.ToLazy(),                    
Name = e.Name,                    
Employer = e.Employer.ToStr,                    
Suit = e.ReservedSuit.ToStr,                    
Size = e.PreferredSize,                    
Active = e.Active,                    
_nv_Birth_Date = e.DateOfBirth                
};

or are we doing something wrong ?

 

TIA

Coordinator
Aug 22, 2010 at 9:44 PM

Hi,

I don't see a bug in here at least: http://signum.codeplex.com/SourceControl/changeset/view/25903#510413 

Could you tell me if it have to do with Visible not being set to false or a UI problem: 

something like this somewhere in your code: 

dqm.QueryDescription("FinsEmployees").Columns.Single(a=>a.Name == "_nv_Birth_Date").Visible

Waiting for your answer, 
Olmo