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
465
UltraGrid EditorButton click without going into edit mode
posted

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

Parents
No Data
Reply
  • 7535
    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:

    https://ko.infragistics.com/help/winforms/infragistics.win.ultrawingrid~infragistics.win.ultrawingrid.ultragridcolumn~cellactivation


    Please let me know if you need more information.

Children
No Data