Never mind. I found an answer that works. Thank you for your help Cameron it put me in the right direction anyway.
On the btnAssign_Click event on the calling formI have the following code.
frm_AssignTask fmAssignTask =
new frm_AssignTask();
bLoadingAssignTask =
true;
App.CurrentRequestID = RequestID;
fmAssignTask.Closed +=
new EventHandler(frm_AssignTask_Closed);
fmAssignTask.Disposed +=
new EventHandler(frm_AssignTask_Disposed);
fmAssignTask.ShowDialog();
The frm_AssignTask_Closed and frm_AssignTask_Disposed both reside in the calling form with the following commands:
private void frm_AssignTask_Closed(object sender, System.EventArgs e)
{
RetrieveDataset();
FormatGrid();
this.dtgTransactionQueue.Refresh();
this.BringToFront();
}
private void frm_AssignTask_Disposed(object sender, System.EventArgs e)
{
RetrieveDataset();
FormatGrid();
this.dtgTransactionQueue.Refresh();
this.BringToFront();
}
The RetrieveDataset method simply runs the query against the database again to get a refreshed recordset. The FormatGrid method simply sets up the DataGrid Columns with the MappingNames and HeaderText. Then we simply just to a refresh.