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. Image for the cookie policy date

ViewLayout.ClientRowColToPoint returns wrong value when scrolled

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?

2 Replies

Administrator 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 October 20, 2004 04:43 PM UTC

Worked like a charm. Thanks
Live Chat Icon For mobile
Up arrow icon