none
After changing DataSet how to update datagridview RRS feed

  • Question

  • Hi :)

    I have changed some data in a dataset manually


    dataset.tables["table"].rows[4]["Name"] = "test test test";

    and so on.

    How to update a datagridview to show the changed dataset?
    DataSet is connected to the datagridview via datasource and datamember

    Sunday, July 19, 2009 5:19 PM

Answers

  • Do you have the DataSet set in the DataSource and the table name as the datamember?

    If you change it, it should automatically be updated.

    As something else you could set the DataSource property to the dataSet.Tables["table"].DefaultView as well too.

    Thanks
    Chris Robinson
    Program manager - DataSet


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, July 20, 2009 12:26 AM

All replies

  • Do you have the DataSet set in the DataSource and the table name as the datamember?

    If you change it, it should automatically be updated.

    As something else you could set the DataSource property to the dataSet.Tables["table"].DefaultView as well too.

    Thanks
    Chris Robinson
    Program manager - DataSet


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, July 20, 2009 12:26 AM
  • Ok, I try it
    Friday, July 24, 2009 7:38 AM