private void btnNuevo_Click(object sender, EventArgs e) { frmDocumentoReferencia doc = new frmDocumentoReferencia(); doc.StartPosition = FormStartPosition.CenterScreen; doc.Show(); }
private void grdDoc_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { string sid = grdDoc.Rows[grdDoc.CurrentCell.RowIndex].Cells[0].Value.ToString(); string sDocumento = grdDoc.Rows[grdDoc.CurrentCell.RowIndex].Cells[1].Value.ToString(); string sDescripcion = grdDoc.Rows[grdDoc.CurrentCell.RowIndex].Cells[2].Value.ToString(); string sFecha = grdDoc.Rows[grdDoc.CurrentCell.RowIndex].Cells[3].Value.ToString(); string sMonto = grdDoc.Rows[grdDoc.CurrentCell.RowIndex].Cells[4].Value.ToString(); frmDocumentoReferencia temp = new frmDocumentoReferencia(sid, sDocumento, sDescripcion, sFecha, sMonto); temp.StartPosition = FormStartPosition.CenterScreen; temp.Show(); }