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

ViewLayout.ClientRowColToPoint returns wrong value when scrolled

Thread ID:





20526 Oct 20,2004 01:25 PM UTC Oct 20,2004 04:43 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On October 20, 2004 01:25 PM UTC

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 03:01 PM UTC

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 04:43 PM UTC

Worked like a charm. Thanks


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon