if ASelected or AFocused then
begin
if (DataGrid.FocusedNode = ANode) and (DataGrid.FocusedField.FieldName='ZCF') and
(AColumn.Caption ='职称加分') and
(DataGrid.Columns[DataGrid.FocusedColumn].FieldName='ZCF' ) then
begin
InputPanel.Top:= ARect.Top;
InputPanel.Height:= DataGrid.DefaultRowHeight;
InputPanel.Left:= ARect.Left;
InputPanel.Width:= ARect.Right - ARect.Left;
InputPanel.Visible:= true;
end;
end;