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).
Microsoft has ended support for older versions of IE. For the best experience, upgrade to the latest version of IE, or view this page in another browser.
In GridDataControl,you can get the Row and Column index of a cell, using PointToCellRowColumnIndex and PointToCellRowColumnIndexOutsideCells.
PointToCellRowColumnIndex
This method enables you to get the Row and Column indexof points in GridDataControlregardless of its position, by returning index values of points outside cell region also. You cannot distinguish if you have clicked on cell or points outside cells.The syntax of this method is PointToCellRowColumnIndex (Point p).
C#:
You can distinguish points inside the cells and outside, using the method PointToCellRowColumnIndexOutsideCells.
PointToCellRowColumnIndexOutsideCells
This is used to get Row and Column indexof points in GridDataControl, along with a way to identify points outside cells. The syntax of this method is PointToCellRowColumnIndexOutsideCells(Point p, boolallowOutsideLines). You can easily identify whether you have clicked at any point inside the cells or outside by setting the allowOutsideLines value as “false”. This method returns negative index values for points outside the cellswhen set”false”.
C#:
If you click at points inside cells, you will get the Row and Column indexin the message box,otherwise, it will show as Clicked on the empty cells.
2X faster development
The ultimate WPF UI toolkit to boost your development speed.
I agree to the creation of a Syncfusion account in my name and to be contacted regarding this message. No further action will be taken. Please see our Privacy policy and Cookie Policy.
This page will automatically be redirected to the sign-in page in 10 seconds.
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.