cxgrid单击某一网格事件,可在ViewTable的KeyPress事件中判断if Key = #32 thenbegin if Trim(colname.EditValue) = '' then colcode.FocusWithSelection //else // colReqNum.Editing := True;end;