# InMemoryFeatureLayer question

**URL:** <https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148>\
**Category:** WinForms\
**Created:** [April 9, 2010, 4:29pm UTC](https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148 "2010-04-09T16:29:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter6](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@Peter6](https://community.thinkgeo.com/u/Peter6)\
**Post date:** [April 9, 2010, 4:29pm UTC](https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148/1 "2010-04-09T16:29:32Z")

</div>

Would&nbsp;there&nbsp;be&nbsp;a&nbsp;reason&nbsp;I&nbsp;don't&nbsp;see&nbsp;ColumnValues&nbsp;for&nbsp;a&nbsp;given&nbsp;Feature&nbsp;when&nbsp;calling

&nbsp;

&nbsp;InMemoryFeatureLayer&nbsp;tmpLayer&nbsp;=&nbsp;MyMap.FindFeatureLayer("layerName")&nbsp;as&nbsp;InMemoryFeatureLayer;&nbsp;

//does&nbsp;work&nbsp;

foreach&nbsp;(Feature&nbsp;feature&nbsp;in&nbsp;tmpLayer.InternalFeatures)

//doesn't&nbsp;work

(Feature&nbsp;feature&nbsp;in&nbsp;tmpLayer.QueryTools.GetAllFeatures(ReturningColumnsType.AllColumns))

foreach

&nbsp;

I&nbsp;do&nbsp;see&nbsp;column&nbsp;values&nbsp;for&nbsp;a&nbsp;given&nbsp;feature&nbsp;if&nbsp;I&nbsp;interate&nbsp;through&nbsp;the&nbsp;internalfeatures&nbsp;of&nbsp;the&nbsp;layer&nbsp;though.&nbsp;

Any&nbsp;ideas?

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 11, 2010, 7:31pm UTC](https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148/2 "2010-04-11T19:31:50Z")

</div>

Peter,

Thanks&nbsp;for&nbsp;your&nbsp;post.&nbsp;

I&nbsp;think&nbsp;the&nbsp;reason&nbsp;probably&nbsp;is&nbsp;that&nbsp;when&nbsp;you&nbsp;create&nbsp;your&nbsp;InmemoryFeatureLayer&nbsp;“layerName”,&nbsp;you&nbsp;did&nbsp;not&nbsp;add&nbsp;any&nbsp;column&nbsp;Values&nbsp;to&nbsp;it.  
&nbsp;  
You&nbsp;could&nbsp;add&nbsp;it&nbsp;via&nbsp;constructor&nbsp;or&nbsp;val&nbsp;following&nbsp;statement:  
`inmemoryFeatureLaeyr.Columns.Add(new FeatureSourceColumn("YourColumns"));`  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Val](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/v/e56c9b/32.png) [@Val](https://community.thinkgeo.com/u/Val)\
**Post date:** [April 12, 2010, 11:34am UTC](https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148/3 "2010-04-12T11:34:39Z")

</div>

I&nbsp;also&nbsp;let&nbsp;you&nbsp;know&nbsp;that&nbsp;you&nbsp;can&nbsp;look&nbsp;at&nbsp;&nbsp;the&nbsp;project&nbsp;_Decimal&nbsp;Degrees&nbsp;Formatting&nbsp;_for&nbsp;example&nbsp;where&nbsp;you&nbsp;can&nbsp;find&nbsp;a&nbsp;more&nbsp;complete&nbsp;code&nbsp;related&nbsp;to&nbsp;Columns&nbsp;for&nbsp;InMemoryFeatureLayer.

[code.thinkgeo.com/projects/show/decimaldegrees](http://code.thinkgeo.com/projects/show/decimaldegrees)

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 12, 2010, 7:52pm UTC](https://community.thinkgeo.com/t/inmemoryfeaturelayer-question/1148/4 "2010-04-12T19:52:17Z")

</div>

Val,&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;help.&nbsp;Peter,&nbsp;any&nbsp;more&nbsp;questions&nbsp;just&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;us&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;
