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

AD Administrator Syncfusion Team 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.


AD Administrator Syncfusion Team October 20, 2004 12:43 PM

Worked like a charm. Thanks

Loader.
Live Chat Icon For mobile
Up arrow icon