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.
Unfortunately, activation email could not send to your email. Please try again.

ViewLayout.ClientRowColToPoint returns wrong value when scrolled

Thread ID:

Created:

Updated:

Platform:

Replies:

20526 Oct 20,2004 09:25 AM Oct 20,2004 12:43 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 20, 2004 09:25 AM

I''ve got a model/renderer for a cell and I''m trying to detect whether a certain area of a cell is being clicked. I call this.ViewLayout.ClientRowColToPoint() to get the upper left hand location of the cell as this is all I need. In this case, the cell is a row header and when the grid is scrolled vertically, the value returned is the lower left hand location (or the upper left hand location of the cell below). When the grid is scrolled to the top, it returns the upper left hand location correctly. Am I doing something wrong? Should I be using another method?

Administrator [Syncfusion]
Replied On October 20, 2004 11:01 AM

Try using Rectangle rect = this.gridControl1.RangeInfoToRectangle(GridRangeInfo.Cell(row, col))); to see if this gives you what you need.

Administrator [Syncfusion]
Replied On October 20, 2004 12:43 PM

Worked like a charm. 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.

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.

;