in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

how to refresh the cxGrid to display the new inserted record

Last post 10/26/2007 5:47 PM by Ed Dressel [DX Squad]. 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 10/22/2007 8:53 PM

    how to refresh the cxGrid to display the new inserted record

    I use a cxGrid to display a table, the date in the table are changed every minutes by other programm, and I use a timer to refresh the data.

    Here is my code in timer event:

    //reload data

    DataModule1.ADOStoredProcGetSendingStatus.Active := false;

    DataModule1.ADOStoredProcGetSendingStatus.Active := true;

    //refresh tvSendStatus.DataController.RefreshExternalData;

    but there's problem, it can refresh the record which updated by other program,but can not refresh the record which insert by other program, when delete a record by other program ,this will raise an exception.

     I try to use UpdateItem(False),

    but it takes no effect.

    how to refresh the cxGrid to display the new inserted record.

  • 10/26/2007 5:47 PM In reply to

    Re: how to refresh the cxGrid to display the new inserted record

    Updating the dataset should update the grid.

    Ed Dressel
    DX Squad
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED