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

Row Col to Point

Thread ID:





27719 Apr 15,2005 10:29 PM UTC Apr 18,2005 04:28 PM UTC WinForms 2
Tags: GridControl
Asked On April 15, 2005 10:29 PM UTC

How can I obtain a screen point (in client units) of a given row and column? I looking for something like Grid.RowColToPoint(int Row, int Col). Preferrably a method that returns negative locations as well for rows and columns not shown on the screen. Thanks, Steve

Administrator [Syncfusion]
Replied On April 15, 2005 11:49 PM UTC

You can try using Rectangle rect = grid. g.RangeInfoToRectangle(GridRangeInfo.Cell(rowIndex, colIndex)); Then rect.Top and rect.Left will pick out a corner of the cell.

Replied On April 18, 2005 04:28 PM UTC

Using this method, I can only get points that are positive (rows and columns currently being shown). I would like to get negative points as well. For example, if row 1 is not being shown, but I would like a point at 1,1. This will help me position children of the grid that may be anchored at a non-visible row/col but are partially shown. Thanks, Steve >You can try using > >Rectangle rect = grid. g.RangeInfoToRectangle(GridRangeInfo.Cell(rowIndex, colIndex)); > > >Then rect.Top and rect.Left will pick out a corner of the cell.


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