public DataSet SelectZohoSrvRows(DataSet myDataSet,string zohoConnection,string mySelectQuery,string myTableName)
{
ZohoConnection myConn = new ZohoConnection(zohoConnection);
ZohoDataAdapter myDataAdapter = new ZohoDataAdapter();
myDataAdapter.SelectCommand = new ZohoCommand(mySelectQuery, myConn);
ZohoCommandBuilder zohoCommandBuilder = new ZohoCommandBuilder(myDataAdapter);
myConn.Open();
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "Departments");
//code to modify data in dataset here
//Without the ZohoCommandBuilder this line would fail
myDataAdapter.Update(myDataSet, "Departments");
myConn.Close();
return myDataSet;
}