Hello.. i have two datatables with only one column each. i wanted to compare those two columns in two datatables. here is the example
now i want to compare dt2 with dt1. dt2 is bound to a list box. so once i match with dt1, the unmatched items selection should be diabled. here i wanted the mango and apricot selection to be disabled..
use LINQ if you are coding under with C# 3 and or .NET. Its a very powerful language feature, with support for quering objects and memory. so you can just do simple queries from you DB o your app with SELECT * FROM ..., then fill them in their respective collections then you can use LINQ to manage and compare them very easly. if that sounds simpler to you.