Hello,
How to get cell rectangle for DevExpress.XtraGrid?
Regards,
Vadim
How to get GridView's cell rectangle
Answers approved by DevExpress Support
Hi,
To achieve your goal, use the following code:
C#GridViewInfo gridViewInfo = (GridViewInfo)gridView1.GetViewInfo(); GridCellInfo gridCellInfo = gridViewInfo.GetGridCellInfo(gridView1.FocusedRowHandle, gridView1.FocusedColumn); Rectangle cellRectangle = gridCellInfo.CellValueRect;
I hope you find this information useful. Let me know if you have additional questions.