S
SevDer
Hi Guys,
I have the following issue on FindRows.
Below is my simple little method
--------------
public static DataRowView[] GetCountryDestinations(string
countryCode)
{
DataView filteredResults = Destionations.DefaultView;
filteredResults.Sort = "CountryCode";
return filteredResults.FindRows(countryCode);
}
--------------
As you see from this code, it always adds a sort in each call of the method,
however from time to time it throws the following exception and driving me
crazy
--------------
Find finds a row based on a Sort order, and no Sort order is specified.
--------------
Can someone tell me why?
SevDer
http://www.sevder.com
I have the following issue on FindRows.
Below is my simple little method
--------------
public static DataRowView[] GetCountryDestinations(string
countryCode)
{
DataView filteredResults = Destionations.DefaultView;
filteredResults.Sort = "CountryCode";
return filteredResults.FindRows(countryCode);
}
--------------
As you see from this code, it always adds a sort in each call of the method,
however from time to time it throws the following exception and driving me
crazy
--------------
Find finds a row based on a Sort order, and no Sort order is specified.
--------------
Can someone tell me why?
SevDer
http://www.sevder.com