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
385
Disable row selections (again ;)
posted

Hi,

I have searched the forum and saw previous posts, however, it does not seem to work for me. I would like to disable that rows can be selected and set the following:

e.Layout.Override.SelectTypeRow = SelectType.None;
e.Layout.Override.SelectTypeCell = SelectType.None;

However, in Infragistics 9.1, I can still select the rows and get OnBeforeRowActivate events.  What do I have to do additionally?

Regards,
Reto

Parents
No Data
Reply
  • 20872
    Suggested Answer
    Offline posted

    Hi,

    I am not exactly sure what you are trying to achieve , but you can change the appearance of the selected row. If you don’t want to use appearances at all , you are able to reset them like -

    ultraGrid1.DisplayLayout.Override.ResetAppearances();

    If you want to deactivate the selection at all, you can use the following code snippet :

    private void ultraGrid1_InitializeRow(object sender, InitializeRowEventArgs e)

            {

                e.Row.Activation = Activation.Disabled;

            }

     

    Please let me know if I can provide additional help.

     

    Sincerely,

    Danko Valkov

    Developer Support Engineer

    Infragistics, Inc.

Children