public System.Windows.Forms.DataGridView dataGridView1 { get { lock (ojb) { return dataGridView; } } set { lock (ojb) { dataGridView = value; } } }