Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
705
How to update grid from dataset
posted

I have a complicated query with a bunch of different inputs.  I was wondering if its possible to have the grid update when the dataset gets changed. IE like how ive written it below.

 

public DataSet dsGrid = null;

public void FillGrid(int groupType, int groupedTrades, string xmlLayout)
{

            dsGrid = runQuery();

            if (ultraGridTradeTagger.DataSource == null)
                ultraGridTradeTagger.DataSource = dsGrid.Tables[0];

}

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I don't understand your question. If you bind the grid to a DataTable, which you seem to be doing here, then any changes you make to that DataTable will automatically be displayed in the grid. The DataTable sends a notification when something changes and the grid receives this notification and updates the display. You don't have to do anything.

Children