private void Table001_Click(object sender, System.EventArgs e)
        {
            var f = new GridForm {  };

            f.xservice.ParentContentKey = "";

            f.Show();


            if (NewForm != null)
                NewForm(f);
        }
Example #2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.Rows[e.RowIndex].IsNewRow)
                return;

            var ContentKey = (string)dataGridView1[0, e.RowIndex].Value;

            var f = new GridForm
            {
                Owner = this,
                //service = service,
                //ParentContentKey = ContentKey,
                StartPosition = FormStartPosition.Manual
            };

            f.xservice.ParentContentKey = ContentKey;

            f.Location = new Point(this.Left, this.Top + 32);

            f.Show();

        }