to ihihonline只能在DBGrid中操作,不操作数据表。

解决方案 »

  1.   

    var i,j:integer;
    table.first;
    i:=table.fieldcount;
    while not table.eof do 
    begin
    with dbgrid do 
    begin
    for j:=0 to i-1 do 
    begin
    if coloums[j].values=''then
    begin
    table.delete;
    end;
    end;
    end;
    table.next
    end;  
    过滤掉重复的记录,有点困难.可能还是要动数据表.
      

  2.   

    我想你要求过滤而非删除可能有你的需要.所以可以创建一个临时表,在该表中进行处理,是可以的,然后改变DBGRID的DATASET,应该是可以的.
      

  3.   

    把DBGRID的DATASET对象设为Qquey或StoreProc过滤空值