Ok, I got even further with this but I am unable to extract the value from a particular column, it just gives me an error:
FeatureLayer featureLayer = MobileApplication.Current.Project.FindFeatureLayer("Field Crew Teams");
string user = m_signInExtension.UserID;
string whereClause = "UserID = " + "'" + user + "'";
ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("Query String is " + whereClause); //just making sure the query is correct
QueryFilter pQFilter = new QueryFilter();
pQFilter.WhereClause = whereClause;
FeatureDataTable fDataTable = featureLayer.GetDataTable(pQFilter);
fDataTable = featureLayer.GetDataTable();
int columnNameIndex = fDataTable.Columns.IndexOf("UserID");
int featureCount = featureLayer.GetFeatureCount(pQFilter);
ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("Feature Count = " + Convert.ToString(featureCount)); //value returned is 1, which is correct
FeatureDataReader fDataReader = featureLayer.GetDataReader(pQFilter);
ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog(fDataReader.GetDataTypeName(columnNameIndex)); //this does work, it gives me "String", which is correct
fDataReader.Read; //THIS MUST BE DONE BEFORE TRYING TO READ THE TABLE, finally figured it out!
string userIs = fDataReader.GetString(columnNameIndex).ToString; //Error! ++ Added .ToString at the end
ESRI.ArcGIS.Mobile.Client.Windows.MessageBox.ShowDialog("The user is = " + userIs); //this doesn't show up because of the error above
I have tried GetValue also but that will only return an Int. But even then, I tested it on an Int field and it still wouldn't retrieve the value from the field. For some reason I won't run this line "string userIs = fDataReader.GetString(columnNameIndex); //Error!"Edit: Figured it out, you must put fDataReader.Read before tryingto read the table.----Once again thanks buddha for the queryfilter and ESRI documentation.Thanks,Akhil P.