private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0 || e.ColumnIndex < 0) { return; } IQueryable <View_HR_PersonnelArchive> query = m_personnerServer.GetPersonnelArchiveByPostName(dataGridView1.CurrentRow.Cells["岗位名称"].Value.ToString()); FormViewData form = new FormViewData(query); form.ShowDialog(); }