|
-
January 17th, 2013, 09:30 AM
#3
Re: Problem with SQL query and RowFilter
 Originally Posted by ElizabethV
A guess just by looking at your code that the formatting is wrong forthe maximum and minimum on the line
view.RowFilter = String.Format("BattingAverage >= {0} AND BattingAverage <= {1}", minimum, maximum);
try
view.RowFilter = String.Format("BattingAverage >= {0} AND BattingAverage <= {1}", minimum.ToString(), maximum.ToString());
I solved it by using the following code, but I guess yours will work to.
view.RowFilter = String.Format(Culture.Info.InvariantCulture.Number Format,("BattingAverage >= {0} AND BattingAverage <= {1}"), minimum, maximum);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|