Forum > Databases

DBNavigator

(1/1)

xaver13:
Hello, I discovered DBNavigator. When I tried to use it, it looks nice.
But when I try to insert line in my DBgrid, it did not insert line after the last line but .... somewhere, and .. the changes  was shown, but not stored at the end. Even I use "post" button.
Please does anybody know where could be  problems? Should I fill some code somewhere? Is there any tutorial, how to use it properly?

I am not alone who has problem with insert ... I found 4 years old thread http://forum.lazarus.freepascal.org/index.php/topic,23800.msg304705.html#msg304705 here.

Thank you very much for reply.

KoBraSoft:
Try this:

--- 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";}};} ---procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TDBNavButtonType);begin  if Button = nBInsert then      (Sender as TDBNavigator).DataSource.Dataset.Append;end;
in OnClick event.

Konrad

Navigation

[0] Message Index

Go to full version