public DataSet SelectZohoDeskSrvRows(DataSet myDataSet,string ZohoDeskConnection,string mySelectQuery,string myTableName)
{
ZohoDeskConnection myConn = new ZohoDeskConnection(ZohoDeskConnection);
ZohoDeskDataAdapter myDataAdapter = new ZohoDeskDataAdapter();
myDataAdapter.SelectCommand = new ZohoDeskCommand(mySelectQuery, myConn);
ZohoDeskCommandBuilder ZohoDeskCommandBuilder = new ZohoDeskCommandBuilder(myDataAdapter);
myConn.Open();
DataSet myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet, "Departments");
//code to modify data in dataset here
//Without the ZohoDeskCommandBuilder this line would fail
myDataAdapter.Update(myDataSet, "Departments");
myConn.Close();
return myDataSet;
}