# FeatureLayer.FeatureSource.GetFeaturesByColumnValue

**URL:** <https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322>\
**Category:** WinForms\
**Created:** [April 1, 2009, 1:33pm UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322 "2009-04-01T13:33:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [April 1, 2009, 1:33pm UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/1 "2009-04-01T13:33:50Z")

</div>

I&nbsp;really&nbsp;need&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;obtain&nbsp;features&nbsp;when&nbsp;they&nbsp;match&nbsp;2&nbsp;or&nbsp;more&nbsp;criteria.&nbsp;There&nbsp;may&nbsp;not&nbsp;be&nbsp;one&nbsp;unique&nbsp;identifier&nbsp;but&nbsp;with&nbsp;a&nbsp;combination&nbsp;of&nbsp;column&nbsp;values&nbsp;this&nbsp;would&nbsp;be&nbsp;ok.&nbsp;Is&nbsp;there&nbsp;any&nbsp;way&nbsp;to&nbsp;do&nbsp;this&nbsp;currently?&nbsp;Has&nbsp;anyone&nbsp;else&nbsp;ran&nbsp;into&nbsp;this&nbsp;situation?

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [April 3, 2009, 3:17am UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/2 "2009-04-03T03:17:41Z")

</div>

Nelson,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;don’t&nbsp;have&nbsp;the&nbsp;built-in&nbsp;method&nbsp;but&nbsp;you&nbsp;can&nbsp;implement&nbsp;it&nbsp;yourself.&nbsp;You&nbsp;can&nbsp;make&nbsp;it&nbsp;an&nbsp;extension&nbsp;method&nbsp;or&nbsp;create&nbsp;a&nbsp;new&nbsp;class&nbsp;by&nbsp;inheriting&nbsp;the&nbsp;FeatureSource,&nbsp;neither&nbsp;of&nbsp;them&nbsp;is&nbsp;very&nbsp;difficult&nbsp;I&nbsp;think.&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;need&nbsp;any&nbsp;help&nbsp;with&nbsp;your&nbsp;concrete&nbsp;scenario.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Ben

---

<div class="post-metadata">

**Author:** ![John4](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@John4](https://community.thinkgeo.com/u/John4)\
**Post date:** [April 3, 2009, 3:25am UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/3 "2009-04-03T03:25:52Z")

</div>

Hi&nbsp;Nelson,

I&nbsp;bounced&nbsp;a&nbsp;similar&nbsp;problem&nbsp;off&nbsp;David&nbsp;a&nbsp;while&nbsp;ago&nbsp;and&nbsp;he&nbsp;came&nbsp;up&nbsp;with&nbsp;the&nbsp;folowing&nbsp;solution:-

[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/16/aft/5358/afv/topic/Default.aspx)

I&nbsp;does&nbsp;work&nbsp;and&nbsp;allows&nbsp;you&nbsp;to&nbsp;use&nbsp;multiple&nbsp;columns.

Regards

John

&nbsp;

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [April 3, 2009, 5:33am UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/4 "2009-04-03T05:33:33Z")

</div>

Yes,&nbsp;that’s&nbsp;pretty&nbsp;cool.&nbsp;Thanks&nbsp;for&nbsp;reminding&nbsp;John!&nbsp;  
&nbsp;&nbsp;  
&nbsp;Nelson,&nbsp;if&nbsp;that&nbsp;doesn’t&nbsp;meet&nbsp;your&nbsp;scenario,&nbsp;still&nbsp;let&nbsp;me&nbsp;know&nbsp;with&nbsp;your&nbsp;concrete&nbsp;scenario.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Ben

---

<div class="post-metadata">

**Author:** ![Nelson](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/n/dec6dc/32.png) [@Nelson](https://community.thinkgeo.com/u/Nelson)\
**Post date:** [April 3, 2009, 6:30am UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/5 "2009-04-03T06:30:13Z")

</div>

Thanks&nbsp;both&nbsp;of&nbsp;you.&nbsp;Our&nbsp;scenario&nbsp;basically&nbsp;involves&nbsp;needing&nbsp;to&nbsp;look&nbsp;through&nbsp;attribute&nbsp;data&nbsp;to&nbsp;uniquely&nbsp;identify&nbsp;a&nbsp;feature.&nbsp;I&nbsp;am&nbsp;being&nbsp;passed&nbsp;a&nbsp;stand&nbsp;alone&nbsp;dbf&nbsp;file&nbsp;location&nbsp;as&nbsp;a&nbsp;parameter&nbsp;that&nbsp;is&nbsp;read&nbsp;on&nbsp;load.&nbsp;This&nbsp;dbf&nbsp;is&nbsp;created&nbsp;by&nbsp;a&nbsp;seperate&nbsp;peice&nbsp;of&nbsp;software&nbsp;and&nbsp;contains&nbsp;search&nbsp;results.&nbsp;Because&nbsp;of&nbsp;the&nbsp;many&nbsp;variables&nbsp;between&nbsp;our&nbsp;customers,&nbsp;we&nbsp;typically&nbsp;use&nbsp;a&nbsp;map,block,lot&nbsp;scheme&nbsp;to&nbsp;uniquely&nbsp;identify,&nbsp;but&nbsp;as&nbsp;we&nbsp;atomize&nbsp;the&nbsp;fields&nbsp;we&nbsp;would&nbsp;then&nbsp;need&nbsp;to&nbsp;identify&nbsp;three&nbsp;fields.

&nbsp;

We&nbsp;may&nbsp;just&nbsp;impose&nbsp;on&nbsp;them&nbsp;that&nbsp;they&nbsp;need&nbsp;a&nbsp;concatonated&nbsp;version&nbsp;or&nbsp;some&nbsp;other&nbsp;unique&nbsp;identifier&nbsp;for&nbsp;us&nbsp;as&nbsp;we&nbsp;move&nbsp;on&nbsp;to&nbsp;new&nbsp;features.&nbsp;The&nbsp;FleeStyle&nbsp;stuff&nbsp;is&nbsp;interesting,&nbsp;though.&nbsp;I'll&nbsp;have&nbsp;to&nbsp;take&nbsp;a&nbsp;look.

&nbsp;

Thanks&nbsp;again.

---

<div class="post-metadata">

**Author:** ![Ben](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ben/32/25720_2.png) [@Ben](https://community.thinkgeo.com/u/Ben)\
**Post date:** [April 9, 2009, 10:06pm UTC](https://community.thinkgeo.com/t/featurelayer-featuresource-getfeaturesbycolumnvalue/322/6 "2009-04-09T22:06:50Z")

</div>

I&nbsp;think&nbsp;FleeStyle&nbsp;is&nbsp;fine&nbsp;for&nbsp;your&nbsp;case,&nbsp;Nelson.&nbsp;Let&nbsp;us&nbsp;know&nbsp;if&nbsp;you&nbsp;have&nbsp;any&nbsp;problems.
