If I have a query
var query = from c in ds.Prices
select c;
dataGridControl1.AutoCreateColumns = true;
dataGridControl1.ItemsSource = query;
datagrid show all data from table(`ds = new DataSet()). But when I add condition
var query = from c in ds.Prices
where c.idsticker.Equals("GOOG")
select c;
dataGridControl1.AutoCreateColumns = true;
dataGridControl1.ItemsSource = query;
datagrid is empty. But value GOOG exists in table(idsticker varchar(10) in sql server). When I compare int values(for example condition is where c.prices > 660) it works normal.
What is wrong?
All I can think of is to apply a Trim() to it, and possibly ToUpper() to see if one or both of those makes any difference.
Beyond that, try executing the same query using SQL against your database.