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
965
13.1 Release - ActiveRow and Context Menus
posted

Hello,

I downloaded the 13.1 Release and used the Version Utility to upgrade my project and made no other code changes.

I noticed 2 things after the upgrade to 13.1

1) By default when I load a grid I set the ActiveRow = Null as I don't want the first row to be highlighted. Now every grid in my application has the first row highlighted as if it is the Active Row. Here is a sample of the code I use.

                this.ugGrid1BindingSource.DataSource = MyObject;
                this.ugGrid1.DataBind();
                this.ugGrid1.ActiveRow = null;

2) I really like how the grids now support scrolling with the Pan Gesture. However I noticed on a Microsoft Surface tablet when I use the pen or my finger I am no longer able to simulate a mouse right click by either press and hold or when I press the button on the pen and tap the screen. Both of these actions used to simulate a mouse right click and would bring up a context menu on objects that had them. In the grid I am using a MouseDown event for the context menu. In MdiTabManager and Toolbars I am using the built in default functionality. I was looking at the documentation and it looks like I may need to capture the PressAndTapGesture and/or PressAndHoldGesture events? Please advise.

Thanks in advance.

Parents
No Data
Reply
  • 18495
    Suggested Answer
    posted

    Hello acozzi,

    Thank you for contacting Infragistics.

    For your first question, it would depend on when you're setting the ActiveRow to Null.  If you set it in the Form.Load event handler, it won't work because the data has not been loaded into the grid at that point.  I would suggest adding a Timer to the form and then setting the ActiveRow to null in the Timer.Tick event handler and then disabling the Timer.

    For your second question I would recommend looking at the samples provided with NetAdvantage.  If they were installed, you should see them in the Public Documents folder.

Children