Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cxgrid for help

0 views
Skip to first unread message

dingsword

unread,
Sep 16, 2007, 9:35:49 PM9/16/07
to
hi, all. i've a problem under Delphi 7 and cxgrid. When i append
record,cxgrid can't refresh at once,also the new record cann't append
to cxgrid .

here is my code(i have a DB table: log):

procedure TForm1.Button1Click(Sender: TObject);
var
Column: TcxGridColumn;
begin
with adoquery1 do
begin
sql.Clear;
sql.Text := 'insert into log (logtitle,logtag) values
("dfs","dfs")';
ExecSQL;
end;
Column:= cxGrid1DBTableView1.CreateColumn;
Column.Caption:='dfs';
cxGrid1DBTableView1.DataController.AppendRecord;
cxGrid1DBTableView1.DataController.Values[0,1]:='dfs';
cxGrid1DBTableView1.DataController.Values[0,2]:='dfs';
cxGrid1DBTableView1.DataController.Post;
end;

can anybody help me? Thanks a lot .

0 new messages