private void btnInvert_Click(object sender, EventArgs e) { CustomDataGridView view = this.GridView; if (view != null) { view.Invert(); } }