As per my understanding it seems you have to fetch unique records those are with same contactno and cust_name .Above solution is perfect in this case .you can achieve this by another method as well..
cmd = new OleDbCommand("select contactno,cust_name from table1 group by contactno,cust_name having count(distinct contactno)=1",con)
but if you want to remove duplicated ContactNo and cust_Name you can use it as
cmd = new OleDbCommand("select contactno,cust_name from table1 group by contactno,cust_name having count(contactno)=1",con);