您的位置:首页 > 其它

在cxgrid中根据第一列的ID值,对第二列进行下拉过滤

2017-02-17 08:37 211 查看
procedure TForm1.cxGrid1TableView1Column3GetPropertiesForEdit(

  Sender: TcxCustomGridTableItem; ARecord: TcxCustomGridRecord;

  var AProperties: TcxCustomEditProperties);

begin

    (**)// arecord.Values[1]// 第二列的值   arecord.Values[1]

 if not varisnull(arecord.Values[1]) then

 begin

   ADOQuery2.filtered := false;

   ADOQuery2.filter := 'aid='  +arecord.Values[1] ;//

   ADOQuery2.filtered := true;

   aproperties :=   EditRepositoryLookupComboBoxItem1.Properties;

   end;
end;



列的syncmode=True;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐