Josh you have a few different questions and different conflicting statements in each of your post so I'm not sure what you are really after at this point... If you want to query different fields...specified in the second post.If you implemented the find task...then it is in the code behind (#C). You need to adjust this line:
findParameters.SearchFields.AddRange(new string[] { "CITY_NAME", "NAME", "SYSTEM", "STATE_ABBR", "STATE_NAME" });
"CITY_NAME", "NAME", "SYSTEM", "STATE_ABBR", "STATE_NAME" - These are the fields that are searched.If you are using the Query task then LochDhu is right on the right track use the and if both fields need to have the value or the OR predicate if either field should have the value. I think it would be something as easy as this:
query.Where = string.Format("Field1 = 'TextBoxValue.Text' and Field2 'TextBoxValue1.Text'");
OR
query.Where = string.Format("Field1 = 'TextBoxValue.Text' or Field2 = 'TextBoxValue1.Text'");
To try and answer you first question: Which "fields get returned in the datagrid?"For the Query task look in the code behind:
ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query();
query.OutFields.Add("*");
query.Text = QueryComboBox.SelectedItem.ToString();
This statement is returning your fields - query.OutFields.Add("*");I think to return the fields you specified "pno_1" , "Owner_Nm" and URL.
query.OutFields.AddRange(new string[] { "pno_1", "Owner_Nm", "URL" });For the FIND is taking place in the xaml it is bound to the data
<slData:DataGrid.Columns>
<slData:DataGridTextColumn Binding="{Binding Path=LayerId}" Header="Layer ID" />
<slData:DataGridTextColumn Binding="{Binding Path=LayerName}" Header="Layer Name"/>
<slData:DataGridTextColumn Binding="{Binding Path=FoundFieldName}" Header="Found Field Name" />
<slData:DataGridTextColumn Binding="{Binding Path=Value}" Header="Found Field Value"/>
</slData:DataGrid.Columns>
J