public void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Sr = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); nam = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); MessageBox.Show("No :" + Sr + "\nName: " + nam); EST_CRF f1 = new EST_CRF(); f1.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { save1(); string[] strArr = null; int count = 0; char[] splitchar = { '-' }; strArr = son.Split(splitchar); string tem = null; for (count = 0; count <= strArr.Length - 1; count++) { if (count == strArr.Length - 1) { tem = strArr[count]; } //MessageBox.Show(strArr[count]); } Estimates.Sr = tem; EST_CRF ec = new EST_CRF(); ec.ShowDialog(); }