In my UltraGrid, I wish to enable/disable certain cells for update on a given row, depending on the value entered in another cell on that row: this I have achieved by placing code in the AfterCellUpdate event as follows:
ultragrid1:ActiveRow:Cells:Item["MySecondField"]:Activation = if CanEdit then Infragistics.Win.UltraWinGrid.Activation:AllowEdit else Infragistics.Win.UltraWinGrid.Activation:NoEdit.
So far, so good. But of course it only triggers when I change the value in the first cell, where I really want every cell in the relevant columns in my grid to be enabled/disabled when the form launches. I think that the correct approach may be to do a PerformAction, but I don't know (or where) how to loop through each row, or even if this is the correct approach?? Any pointers would be greatly appreciated.
Roger
Have you looked at the InitializeRow event of the UltraGrid?
This will allow you to set your properties prior to the row being rendered.
Daniel is correct. Use InitializeRow.
Brilliant, thanks.
Roger