471,350 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

DataTable - setting a filter on a type of Version

I have a table with a field of type System.Version. I'm trying to set a
filter on it to a specific version but can't get it to work. I'm doing:
string lsOldRecords = "( SoftwareName = '" + pvsSoftwareName + "' ) and "
"( Version <> '" + pvVersion.ToString() + "' )";

Where pvVersion is of type System.Version.

I'm getting an error message saying it can't convert the type from string to

How do I do this comparison?

TIA - Jeff.
Feb 20 '06 #1
0 878

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Ericoli | last post: by
3 posts views Thread by Datatable Dataset Datagrid help | last post: by
4 posts views Thread by Aryan | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.