日期:2014-05-18 浏览次数:20723 次
public FrmAdjustBase() { InitializeComponent(); repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(repositoryItemButtonEdit1_ButtonClick); } private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { FrmNew frm = new FrmNew(); frm.SelectData += new FrmAdjustYarn.SelectDataHandle(frm_SelectData); frm.ShowDialog(); } private void frm_SelectData(string strTest) { gridView1.SetFocusedRowCellValue(gridView1.Columns["YarnHad"], strTest); }