אני חושב שאני מתחיל להבין...
יכול להיות שזה צריך להיות בקובץ דיזיינר? א"כ הנה זה
// dataGridView1
//
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Location = new System.Drawing.Point(12, 125);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.dataGridView1.Size = new System.Drawing.Size(1257, 576);
this.dataGridView1.TabIndex = 0;
//
// txtFilterName
//
this.txtFilterName.Location = new System.Drawing.Point(998, 56);
this.txtFilterName.Name = "txtFilterName";
this.txtFilterName.Size = new System.Drawing.Size(112, 20);
this.txtFilterName.TabIndex = 1;
אני חושד בזה בגלל השורה הזו בדיזיינר של הלחצן שהוספתי..
this.button1.Click += new System.EventHandler(this.button1_Click);