I have multiple Dashboard where I usually have a button to update all rows at once with a value when the user clicked the button. So, when I click on the button with the code below, it changes the value in the grid. However, it only update one row at a time. I made sure that the BAQ has the ‘Allow updates of multiple rows’ checked. What am I doing wrong?
EpiUltraGrid myGrid = (EpiUltraGrid)csm.GetNativeControlReference("f8348326-b599-4a56-98a7-388f23c674c9");
foreach (Infragistics.Win.UltraWinGrid.UltraGridRow r in myGrid.Rows)
r.Cells["Column"].Value = false;
Im not sure if this will help you. I pulled the setRowModOnSelectedRows from Epicor’s way of doing it, this way it also supports it when you have group by… You might just need to tweak grid.Selected.Rows to just be grid.Rows for all (not just selected ones).
MainController.AppControlPanel.HandleToolClick("RefreshTool", new Infragistics.Win.UltraWinToolbars.ToolClickEventArgs(MainController.MainToolManager.Tools["RefreshTool"], null));
I’m not sure I understand what this function is doing. I understand that I need to notify the system that the row should be updated by setting the ‘rowmod’ but your function is only setting the grid cells like me, isn’t it?
First the “Column” should be your real column name. Lets say it is “MyCoolCheckBox” once you got that, then make sure “MyCoolCheckBox” is an updatable column in the Updatable BAQ. Possibly even in the Dashboard, it doesnt have to be visible, but must be Updatable.