I found a slightly modified version of this code that seems to work well. I found it here:
private void epiButtonC1_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
DynamicQueryAdapter yourbaq = new DynamicQueryAdapter(this.oTrans);
DataTable results;
yourbaq.BOConnect();
string baqname = "ChangeOpenJobResGrpIDs";
Ice.BO.QueryExecutionDataSet dsBAQ = yourbaq.GetQueryExecutionParametersByID(baqname);
dsBAQ.ExecutionParameter[0].ParameterID = "OldResGrpID";
dsBAQ.ExecutionParameter[0].IsEmpty = false;
dsBAQ.ExecutionParameter[0].ParameterValue = epiTextBoxC1.Value.ToString();
dsBAQ.AcceptChanges();
yourbaq.ExecuteByID(baqname, dsBAQ);
// Set results of query to the grid view
epiUltraGridC1.DataSource=yourbaq.QueryResults.Tables["Results"].DefaultView;
}
This works great so far. Thanks Daryl! I will get on the update portion next.