# Using ReturningColumnsType.AllColumns

**URL:** <https://community.thinkgeo.com/t/using-returningcolumnstype-allcolumns/4880>\
**Category:** WebForms\
**Created:** [July 6, 2009, 5:45pm UTC](https://community.thinkgeo.com/t/using-returningcolumnstype-allcolumns/4880 "2009-07-06T17:45:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sckeels](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/s/a4c791/32.png) [@sckeels](https://community.thinkgeo.com/u/sckeels)\
**Post date:** [July 6, 2009, 5:45pm UTC](https://community.thinkgeo.com/t/using-returningcolumnstype-allcolumns/4880/1 "2009-07-06T17:45:15Z")

</div>

Hello,&nbsp;&nbsp;I&nbsp;am&nbsp;using&nbsp;the&nbsp;code&nbsp;below&nbsp;the&nbsp;line&nbsp;to&nbsp;draw&nbsp;an&nbsp;ellipse&nbsp;&nbsp;when&nbsp;the&nbsp;user&nbsp;clicks&nbsp;a&nbsp;point.&nbsp;It&nbsp;seems&nbsp;that&nbsp;using&nbsp;"ReturningColumnsType.AllColumns"&nbsp;is&nbsp;what&nbsp;is&nbsp;needed&nbsp;to&nbsp;draw&nbsp;the&nbsp;ellipse.&nbsp;&nbsp;The&nbsp;ellipse&nbsp;has&nbsp;a&nbsp;radius&nbsp;of&nbsp;10&nbsp;miles.&nbsp;&nbsp;All&nbsp;I&nbsp;am&nbsp;doing&nbsp;is&nbsp;adding&nbsp;the&nbsp;"selectedFeatures&nbsp;in&nbsp;the&nbsp;selectedFeaturesCollection&nbsp;to&nbsp;the&nbsp;new&nbsp;Collection&nbsp;efc&nbsp;and&nbsp;using&nbsp;&nbsp;GetFeaturesIntersecting(selectedExtent)&nbsp;to&nbsp;find&nbsp;itself.&nbsp;&nbsp;It&nbsp;seems&nbsp;that&nbsp;I&nbsp;should&nbsp;be&nbsp;able&nbsp;to&nbsp;do&nbsp;the&nbsp;following,&nbsp;but&nbsp;this&nbsp;doesn't&nbsp;show&nbsp;the&nbsp;ellipse.

Thanks,&nbsp;sckeels...  
  
  
  
highlightEllipseLayer.InternalFeatures.Clear();  
  
foreach(Feature&nbsp;selectedFeatures&nbsp;in&nbsp;selectedFeaturesCollection)  
  
{  
  
&nbsp;&nbsp;highlightEllipseLayer.InternalFeatures.Add(selectedFeatures.Id,&nbsp;selectedFeatures);  
  
}

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
  
highlightEllipseLayer.InternalFeatures.Clear();

foreach(Feature&nbsp;selectedFeatures&nbsp;in&nbsp;selectedFeaturesCollection)  
  
{  
  
&nbsp;selectedExtent&nbsp;=&nbsp;selectedFeatures.GetBoundingBox();

&nbsp;&nbsp;ellipseLayer.Open();  
  
Collection\<Feature\>&nbsp;efc&nbsp;=&nbsp;ellipseLayer.QueryTools.GetFeaturesIntersecting(selectedExtent,&nbsp;ReturningColumnsType.AllColumns);  
  
&nbsp;&nbsp;ellipseLayer.Close();

&nbsp;&nbsp;foreach(Feature&nbsp;ellipseFeature&nbsp;in&nbsp;efc)  
  
&nbsp;&nbsp;{  
  
&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;ellipseCellID&nbsp;=&nbsp;ellipseFeature.ColumnValues["CELLSITE\_ID"];  
  
&nbsp;&nbsp;&nbsp;&nbsp;string&nbsp;selectionCellID&nbsp;=&nbsp;selectedFeatures.ColumnValues["CELLSITE\_ID"];

&nbsp;&nbsp;&nbsp;&nbsp;if(ellipseCellID&nbsp;==&nbsp;selectionCellID)  
  
&nbsp;&nbsp;&nbsp;&nbsp;{  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;highlightEllipseLayer.InternalFeatures.Add(ellipseFeature.Id,&nbsp;ellipseFeature);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;  
  
&nbsp;&nbsp;&nbsp;&nbsp;}  
  
&nbsp;&nbsp;}  
  
}

---

<div class="post-metadata">

**Author:** ![Howard](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/h/90ced4/32.png) [@Howard](https://community.thinkgeo.com/u/Howard)\
**Post date:** [July 6, 2009, 7:19pm UTC](https://community.thinkgeo.com/t/using-returningcolumnstype-allcolumns/4880/2 "2009-07-06T19:19:28Z")

</div>

Hi&nbsp;Steven,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Could&nbsp;you&nbsp;check&nbsp;whether&nbsp;the&nbsp;count&nbsp;of&nbsp;the&nbsp;InternalFeatures&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;the&nbsp;loop&nbsp;equals&nbsp;zero?&nbsp;If&nbsp;not,&nbsp;I&nbsp;guess&nbsp;that&nbsp;you&nbsp;missed&nbsp;refreshing&nbsp;the&nbsp;Overlay&nbsp;which&nbsp;contains&nbsp;the&nbsp;highlightEllipseLayer.&nbsp;If&nbsp;it&nbsp;doesn’t&nbsp;fix&nbsp;your&nbsp;issue,&nbsp;please&nbsp;send&nbsp;us&nbsp;a&nbsp;quick&nbsp;sample.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;questions&nbsp;please&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Howard
