In the below code I have a datatable
I want to select a value from datatable
and to check whether value exists or not, but it throws error:
The best overloaded method match for
System.Data.DataTable.Select(string)
has some invalid argument "," cannot convert frombool
tostring
Please help me to solve the issue.
Student Details = new Student ();
DataSet ds = Details.Marks();
DataTable dt = ds.Tables[0];
if (dt.Select("RollNo =" != txtRgNo.Text.ToString()) ||
dt.Select("Name=" != txtName.Text.ToString()))
{
}
else
{
}