示例#1
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            FrmGider frm     = new FrmGider();
            int      secilen = dataGridView1.SelectedCells[0].RowIndex;

            frm.giderid  = dataGridView1.Rows[secilen].Cells[0].Value.ToString();
            frm.elektrk  = dataGridView1.Rows[secilen].Cells[1].Value.ToString();
            frm.su       = dataGridView1.Rows[secilen].Cells[2].Value.ToString();
            frm.dogalgaz = dataGridView1.Rows[secilen].Cells[3].Value.ToString();
            frm.internet = dataGridView1.Rows[secilen].Cells[4].Value.ToString();
            frm.gıda     = dataGridView1.Rows[secilen].Cells[5].Value.ToString();
            frm.personel = dataGridView1.Rows[secilen].Cells[6].Value.ToString();
            frm.diger    = dataGridView1.Rows[secilen].Cells[7].Value.ToString();
            frm.Show();
        }
        private void giderEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmGider frm = new FrmGider();

            frm.Show();
        }