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
830
Add new Record
posted

good evening
 I have a XdataGrid connected to a DataSet.
 For example, I have 10 row
 when i do at the DataSet I MyDataSet.AddRow () on the XDataGrid, it adds a new Row but the
position remains on Row 10 and therefore does not go on the new one.
is that possible to add a new Item or Row at the XDataGrid from code c #?

Parents
  • 830
    posted

    with this method I can move on the record that I added to the DataSet:
    this.xdgvPrimaNota.ExecuteCommand(DataPresenterCommands.RecordLastDisplayed)

    But if I insert it immediately after the addition of records to the dataset, does not work. If I run it after a few seconds, does it work?

    When i add the record in the dataset, on the display of the data grid, it appears the new record  record and therefore happened something that i can intercept and use to trigger the above method

Reply Children