Forum > Packages and Libraries

dbgrid something strange when i add append

(1/1)

eldonfsr:
Some strange on dbgrid when append a record in table show me the row with values i put in there but olso show me row complete empty but the problem is the cursor going to that row...

    ZMQDSDetKarArt.Append;
     ZMQDSDetKarArt.FieldByName('numdoc').AsString :=EDoc.Text;
     ZMQDSDetKarArt.FieldByName('nuevo').AsString :='Y';
     ZMQDSDetKarArt.FieldByName('precio').AsFloat :=0.000;
     ZMQDSDetKarArt.FieldByName('cantidad').AsFloat :=0.000;
     ZMQDSDetKarArt.FieldByName('importe').AsFloat :=0.00;
     DBGDetMovDoc.Refresh;
     DBGDetMovDoc.SelectedIndex:=0;
     DBGDetMovDoc.SetFocus;

bpranoto:
Put

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---ZMQDSDetKarArt.Post;
after


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---ZMQDSDetKarArt.FieldByName('importe').AsFloat :=0.00;

eldonfsr:
Thanks ....

Navigation

[0] Message Index

Go to full version