private void superGridControl1_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e) { GridRow gridRow = (sender as SuperGridControl).PrimaryGrid.ActiveRow as GridRow; if (gridRow == null) { return; } SampleInfo entity = (gridRow.DataItem as SampleInfo); if (entity != null) { _Form1.CurrentSampleInfo = entity; isExit = false; this.Close(); } }
private void superGridControl1_CellDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellDoubleClickEventArgs e) { GridRow gridRow = (sender as SuperGridControl).PrimaryGrid.ActiveRow as GridRow; if (gridRow == null) { return; } SampleInfo entity = (gridRow.DataItem as SampleInfo); if (entity == null) { return; } this.Output = (gridRow.DataItem as SampleInfo); this.DialogResult = DialogResult.OK; this.Close(); }