■ UltraGrid 클래스에서 행 동기화를 사용하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
using System.Data; using Infragistics.Win.UltraWinGrid; private UltraGrid ultraGrid; ... this.ultraGrid.BeginUpdate (); this.ultraGrid.SuspendRowSynchronization (); try { DataTable table = (DataTable)this.ultraGrid.DataSource; foreach (DataRow row in table.Rows) { row["Price"] = (double)row["Price"] + 1.0; } } finally { this.ultraGrid.ResumeRowSynchronization(); this.ultraGrid.EndUpdate(); } |