Example #1
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            var  index    = dataGridView.CurrentRow.Index;
            Form toUpdate = new HotelModifier(new HotelHandler((dataGridView.Rows[index].DataBoundItem as DataRowView).Row));

            toUpdate.MdiParent = this.MdiParent;
            toUpdate.Show();
        }
        private void buttonUpdate_Click(object sender, EventArgs e)
        {

            var index = dataGridView.CurrentRow.Index;
            Form toUpdate = new HotelModifier(new HotelHandler( (dataGridView.Rows[index].DataBoundItem as DataRowView).Row) ) ;
            toUpdate.MdiParent = this.MdiParent;
            toUpdate.Show();
        }