Hi
I set contextmenuStrip for the ultraGrid.Click the button of the contextmenuStrip to select the ultraGrid all rows.The currnet UltraGrid has the least 5000 data.Then change the selected row in a column of data.Such as: this.UltraGrid.ActiveRow = null; this.UltraGridSelected.Rows.Clear(); for (int i = 0; i < this.UltraGrid.Rows.Count; i++) { this.UltraGrid.Rows[i].Selected = true; }(Or use the foreach,Bind)
if (this.UltraGrid.Selected.Rows.Count > 1) { for (int i = 0; i < this.UltraGridSelected.Rows.Count; i++) { this.UltraGrid.Selected.Rows[i].Cells["Cloumn6"].Value = strProType; } }
But this efficiency is very low,resulting in slow page.There is better way to solve this problem?
Thanks.
The efficeincy is raised to select the ultraGrid all rows.But update slow to selected Grid rows data.
Looping through the rows forces the grid to create UltraGridRow and UltraGridCell objects for every row. There's no way around that.
But if you are updating every row in the grid, why not simply loop through the rows in the data source, instead? That might be faster.