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,
Hi Boris,
Sorry for the delayed response. It turns out that the state can be determined by a bool in the wrapper class. I am passed the issue now.
Thanks for your help.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I am not sure what your scenario is. Everything set through the 'Override' object is valid for the whole grid, if, of course, there isn't some setting overriding this, on a particular column or band. The presence of this row could be checked - if you have set the 'AllowAddNew' to 'No', then this row would not be in the grid.
I am not sure that I will be able to help you, if your scenario is more complex, so you could always attach a sample project and write your full requirements - I will try my best to assist you, and modify your sample as per your needs.
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
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.