We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid grouping and mouse scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

63080 Jun 27,2007 08:55 PM UTC Jul 11,2007 09:53 PM UTC WinForms 16
loading
Tags: Grouping
Edwin Brandse
Asked On June 27, 2007 08:55 PM UTC

with databound grid i have no problems with mouse scrolling etc.

But how to enable mouse scrolling with the gridgrouping control?

i started with your own example: firstgridgroupctl


haneefm [Syncfusion]
Replied On June 28, 2007 03:51 PM UTC

Hi Edwin,

You can try these code snippet to resolve this issue.

this.gridGroupingControl1.TableControl.VScroll = true;
this.gridGroupingControl1.TableControl.VScrollBehavior = GridScrollbarMode.Enabled;
this.gridGroupingControl1.TableControl.HScroll = true;
this.gridGroupingControl1.TableControl.HScrollBehavior = GridScrollbarMode.Enabled;
this.gridGroupingControl1.TableControl.EnableIntelliMouse = true;

Best regards,
Haneef

Edwin Brandse
Replied On June 28, 2007 08:55 PM UTC

i tried.....without succes

i'm using logitech keyboard/mouse

WindowsApplication190.zip

haneefm [Syncfusion]
Replied On July 3, 2007 12:21 AM UTC

Hi Edwin,

My sincere apologies for this delay in responding.

I tried to reproduce this problem in your attached sample, but could not get this issue. Maybe I am not following the steps that you are doing. Is it possible for you to provide more information on this problem? This will help us to analyse the issue further.

Many thanks for your patience.

Best regards,
Haneef

Edwin Brandse
Replied On July 3, 2007 10:51 PM UTC

thanks for your reply.

i included a mdb file

step1: unzip and load solution
step2: run the application
step3: focus on grid
step4: try mouse wheel scrolling

i tried on a dell laptop and regular pc.

mmm mouse WHEEL...normal scrolling arrow, page up etc works etc fine. The Wheel function !!

WindowsApplication193.zip

haneefm [Syncfusion]
Replied On July 3, 2007 11:41 PM UTC

Hi Edwin,

We have no other reports of this scrolling problem, and have not seen it here. Attached video clip showing MouseWheel scrolling fuctionality on my system which has 5.1 installed.Below is a video clip.

scrolling.zip

Exactly what version of Windows XP are you using?

Are you only installing Essential Grid or are you installing Essential Studio? Are you installing binaries only, or the source code version?

What version of the .NET framework and VS are you using?

Did you see any errors during the installation of Essential Grid?

Best regrads
Haneef

Edwin Brandse
Replied On July 4, 2007 01:02 PM UTC

I had the same problem with the databoundgrid component. Syncfusion created a patch for that. See fix info below.

- xp sp2; latest microsoft patches etc
- visual studio 2005 SP1
- latest syncfusion service pack installed. bin version. no sources.
- i deployed the " application " on my laptop (Dell D620, XP, dell docking, dell mouse etc) no mouse wheel scrolling.
- Mouse wheel scrolling is working with other applications like microsoft dynamics Ax (janus grid)
- mouse wheel scrolling is working with your own databoundgrid (after patch)


[Updated on 6/18/2007 5:00:28 PM by: polyj@syncfusion.com]
Hi Edwin,

We have fixed the issue reported in the Defect Report # 4297. You can download the patch containing this fix from the below link.



Please let me know if you need more assistance with this incident .

Best regards,
Poly

Edwin Brandse
Replied On July 4, 2007 04:59 PM UTC

version information:

Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional

Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601

XP
Version 5.1.2600 Service Pack 2 Build 2600

Syncfusion Studio 5.1.1.0

Edwin Brandse
Replied On July 4, 2007 05:53 PM UTC

i added a console writeline to the GridGroupingControl1.TableControlMouseWheel event.

see picture: the control recognise the wheel event. But the grid is not scrolling

Screen_73.zip

haneefm [Syncfusion]
Replied On July 5, 2007 03:26 PM UTC

Hi Edwin,

You can enable the mouse wheel for scrolling through the records in a grid by adding the following code:

this.gridGroupingControl1.TableControlMouseWheel += new GridTableControlMouseEventHandler(gridGroupingControl1_TableControlMouseWheel);
void gridGroupingControl1_TableControlMouseWheel(object sender, GridTableControlMouseEventArgs e)
{
if (e.Inner.Delta < 0)
e.TableControl.TopRowIndex++;
else
e.TableControl.TopRowIndex--;
}

Best regards,
Haneef

Edwin Brandse
Replied On July 5, 2007 05:44 PM UTC

Hi Haneef,

this solved the problem.

stupid question...why didn't the mouse wheel work by default and did it work on the movie you showed ? Does it something has to do with my computer / config / software ?

at the end....problem solved

thanks

Edwin Brandse
Replied On July 9, 2007 09:16 PM UTC

scrolling works ! But still something wrong with mouse stuff and gridgroupingcontrol

today :

Private Sub GridGroupingControl1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles GridGroupingControl1.MouseHover
Me.GridGroupingControl1.Focus()
MsgBox("test Focus")
End Sub

The control doesn't get focus neither a the test msgbox.


haneefm [Syncfusion]
Replied On July 9, 2007 10:36 PM UTC

Hi Edwin,

You can try handling the TableControl.MouseHover event :

this.gridGroupingControl1.TableControl.MouseHover += new EventHandler(TableControl_MouseHover);

Best regards,
Haneef

Edwin Brandse
Replied On July 10, 2007 05:16 PM UTC

Adding the evenhandler works (table get focus) but then the mouse wheel function just move 1 row and stops.

"the same" is working with de griddatabound control. Focus, mousewheel, etc

did you see the patch Syncfusion created for the griddatabound control. Before the patch i had the same problems with the griddatabound control. no mousewheel etc

Edwin Brandse
Replied On July 10, 2007 05:30 PM UTC

Hereby picture of the events

hover is working more than ones.
than a couple of mousewheel events and then the mousewheel isn't working anymore.


Screen_01 10-Jul-07 19.25.zip

Edwin Brandse
Replied On July 11, 2007 09:37 PM UTC

i added some console writelines on mdi.mousehover, child.mousehover, tablecontrol.mousehover and me.mousewheel and tablecontrol.mousewheel

My conclusion:
- hover on mdi, child en tablecontrol -> oke
- combination grid hover and tablecontrol.mousewheel the mousewheel event stops. But MDI.mousewheel and Child.mousewheel still works.

see writeline messages below:


tablecontrol.mousehover
child mousehover
tablecontrol.mousehover
child mousehover
child mousehover
tablecontrol.mousehover
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
tablecontrol.mousehover
child mousehover
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
tablecontrol.mousehover
mousewheel +1 (edwin: now focus on grid + mousewheel scroll)
child mousewheel
mdi mousewheel
tablecontrol.mousehover
child mousewheel (edwin: mousewheel working but not anymore on grid)
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel
child mousewheel
mdi mousewheel

Edwin Brandse
Replied On July 11, 2007 09:53 PM UTC

adding Me.GridGroupingControl1.TableControl.Focus()
solved the problem.

So the difference between databoundgrid and gridgrouping is that gridgrouping lost the focus combined with a hover. databoudgrid keeps focus on hover event.

it's oke but a difference.

thanks

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;