private void pictureBox_view_Click(object sender, EventArgs e) { if (this.gridView1.RowCount > 0) { frmView frmView = new frmView(this.gridView1.Columns); frmView.ShowDialog(); clsMe clsMe = new clsMe(); clsMe.ViewGrid(this.gridView1, frmView.listbox); } else { MessageBox.Show(this, "请您先查询数据后再视图显示!", "提示", MessageBoxButtons.OK); } }