1.父窗体定义事件和委托
public delegate void ChangeData(DataGridViewRowCollection viewRowCollection);
public event ChangeData ChangeData_event;
2.在需要的地方添加事件
this.ChangeData_event += frmException.ShowException;
3.ShowException 这个方法是子窗体中的方法 封装自己的业务逻辑(展示数据之类的)
4.父窗体在需要联动的时候 调用 ChangeData_event 并传入相关的参数,子窗体随之也会变换