Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
UltraGrid EditorButton click without going into edit mode

Is there a way when clicking on an EditorButton without going into edit mode?  Thanks

No Data
  • 5295
    Offline posted

    Hello Michael,

    Thank you for posting to our forum.

    I am not very sure about what do you mean by ‘edit mode’ but if you do not want the cell to be editable, then you could probably set the column.CellActivation to NoEdit or ActivateOnly.

    ActivateOnly option allows the user to go into edit mode so the user can select and copy text, however the cell will be read-only thus preventing any data modification.With option noEdit user would not able to edit and copy the text text and would be read only.

    Your code would be like this :

    UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns["ColumnName"];
    column.CellActivation = Activation.ActivateOnly;

    For more information look this online document:

    Please let me know if you need more information.

No Data