private void dgMaterialEntergado_MouseDoubleClick(object sender, MouseEventArgs e) { if (dgKardexDetalle.CurrentCell != null) { ClienteActual.clave_doc = dgKardexDetalle.Rows[dgKardexDetalle.CurrentCell.RowIndex].Cells[11].Value.ToString(); frmDetalleDoc frm_Detalle_Doc = new frmDetalleDoc(); frm_Detalle_Doc.ShowDialog(); } }