I have a DataTable that I am pulling from a DataSet. From the DataTable, I want to use the Where clause to return a particular row. I looked at "How can I select a row from a datatable using two variable values?" but I get an error
"Cannot implicitly convert type 'System.Data.DataRow[]' to 'System.Data.DataRow'"
I searched google, but could not find a solution.
My code is:
mySqlDataAdapter.Fill(myDataSet);
DataTable dtTable = myDataSet.Tables[0];
DataRow dr = dtTable.Select("VendorID = " + Session["VendorId"].ToString());
How can I resolve this?