Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use the UltraGrid provided method call UpdateData() to update all the multiple rows with out need to track changes row by row or by cell</p> <p>The <a href="http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v11.1~Infragistics.Win.UltraWinGrid.UltraGridBase~UpdateData.html" rel="nofollow">UpdateData method</a> updates any modified information in the grid, sending it to the data provider. When the update is complete, any rows that were marked as having modified data will have that mark cleared.</p> <p>The UpdateMethod needs to exit from cells that are still in edit mode, this is a bug and to resolve it you will need to use it as shown below</p> <p>ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.ExitEditMode); ultraGrid1.UpdateData();</p> <p>More details on why to use it this way can be found here <a href="http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=4220" rel="nofollow">http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=4220</a></p> <p>To answer you 2nd question you will have to use the UpdateData method this way</p> <pre><code>e.g. private void ultraButton1_Click(object sender, EventArgs e) { ultraGrid1.UpdateData(); this.dbRowsTableAdapter.Update(this.testDataSet); ultraButton1.Enabled = false; } </code></pre> <p>Again it seems UltraGrid keeps its local data pure to itself hence you will have to call the Update method of the TableAdapter, which means you will have to create a DataSet and fill it with the SqlDataAdapter.</p> <p>Please see forum explaining clearly why UltraGrid.UpdateData method does not commit back to database here <a href="http://www.infragistics.com/community/forums/t/57161.aspx" rel="nofollow">http://www.infragistics.com/community/forums/t/57161.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload