Kod: Tümünü seç
procedure TCari.DBGrid1TitleClick(Column: TColumn);
Begin
if DBGrid1.DataSource.DataSet is TCustomADODataSet then
with TCustomADODataSet(DBGrid1.DataSource.DataSet) do
if (Pos(Column.Field.FieldName, Sort)=1) and (Pos('DESC', Sort)=0) then
Sort:= Column.Field.FieldName+ ' DESC'
end
else
Sort:= Column.Field.FieldName+ ' ASC';
end;
adotable1.next tıkladığımda;
titleclicki hiç calıstırmadıysam sorun yok
ama titleclik 1 kez calıstırdıgımda "tür uyuşmazlığı" diye hata veriyor.
Adotable1.close;Adotable1.open dediğimde hata düzeliyor
Hatayı nasıl giderebilirim?