I would like to change the Y location for a dataGridView to 75, I am trying to move it up at the click of a button.
have already tried
this.dataGridView1.Location = new Point(
this.dataGridView1.Location.X,
this.dataGridView1.Location.Y
);
I would like to change the Y location for a dataGridView to 75, I am trying to move it up at the click of a button.
have already tried
this.dataGridView1.Location = new Point(
this.dataGridView1.Location.X,
this.dataGridView1.Location.Y
);
Just try this:
dataGridView1.Left = 58; //X coordinate
dataGridView1.Top = 57; //Y coordinate