I am trying to do this same thing and every time I run my map It displays nothing. The code I am using is.FeatureLayer siteLayer = MyMap.Layers["Dispatch"] as FeatureLayer;
siteLayer.Where = "Status = Complete";
siteLayer.Update();
My goal is actually to display everything that is not complete so I also triedFeatureLayer siteLayer = MyMap.Layers["Dispatch"] as FeatureLayer;
siteLayer.Where = "Status <> Complete";
siteLayer.Update();
Neither of these work.I also tried adding a where clause on the MainPage.xaml<esri:FeatureLayer DisableClientCaching="True" Where="Status = Complete" ID="Dispatch" OutFields="*" x:Name="Dispatch" MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp" Mode="OnDemand" SelectionColor="Cyan" Visible="True" Url="http://gis02/ArcGIS/rest/services/FeatureServices/Dispatch/FeatureServer/0"/>
This also did not work, It gave me a blank map.Any advice on this?Thanks,Jerry