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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scrolling usercontrol

Thread ID:

Created:

Updated:

Platform:

Replies:

37682 Nov 29,2005 04:41 AM UTC Dec 2,2005 02:06 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On November 29, 2005 04:41 AM UTC

Hi, I have a usercontrol in a grid cell. When the grid scroll''s and the cell that has the user control goes out of scrolling view, the user control does not scroll with the cell instead it remains in the previous (non scrolled )cell location. Should''nt the usercontrol scroll with the cell? Thanks.

Administrator [Syncfusion]
Replied On November 29, 2005 09:40 AM UTC

Can you upload a sample showing this problem? Here is a little sample showing a UserControl in a cell and it seems to scroll OK. http://www.syncfusion.com/Support/user/uploads/GC_UserControl_9ebf5e36.zip

Administrator [Syncfusion]
Replied On December 2, 2005 01:32 AM UTC

Do you have a sample with usercontrol, GridTextBoxCellRenderer and GridGenericControlCellModel which scrolls fine?

Administrator [Syncfusion]
Replied On December 2, 2005 02:06 AM UTC

I am not sure I understand what you are asking for. The sample I posted used a CellType = "Control" with a usercontrol in it. This celltype is based on GridGenericControlCellRender/GridGenericControlCellModel. The other cells in the sample use the standard GridTextBoxCellRenderer/GridTextBoxCellModel celltypes. We also ship a repeater control sample that hosts a UserControl in a genericcontrol derived custom celltype. In the sample we ship, if the host form is not size such that there are an integral number of cells visible, there is a scrolling problem. This problem can be handled by adding a couple of additional override to the renderer class (OnHitText and OnMouseDown) to force th egrid to scroll when you click on a partially visible usercontrol. Here is that modified sample. http://www.syncfusion.com/Support/user/uploads/CS_2cc0e21c.zip If you can post a sample of what you are trying to get working, then maybe we can suggest a solution.

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

;