Hi,
I am new to Infragistics library and have inherited a project that uses it.
We have a form that contains an UltraGrid that by default is not editable. When an edit button is clicked, the grid becomes editable. When right clicking on a row, there are items in the context menu that should be disabled if the grid is not editable. I need a way to determine this state. In addition, each row has AllowEdit set depending on whether the current user is the owner of the row (one of the row's fields has the owner name recorded).
I tried checking UltraGrid.CurrentState, but this doesn't work for me.
Thanks in advance,
Hello,
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
In my situation, each mode of the form has the same value: UltraGrid.DisplayLayout.Override.CellClickAction == CellClickAction.Edit
I might be making a wrong assumption that the grid has some state, but here is an image of the grid in each state:
I need to trace through the code more thoroughly to understand what is happening. Is there a state of the grid as a whole? Or does the developer need to keep track of this seperately? From the image, is there something I can check for the presence of this yellow add row?
Thanks