RadGridView如何实现DataGridView中GetCellDisplayRectangle方法?
DataGridView.GetCellDisplayRectangle()获取单元格的矩形非常好用,请问RadGridView如何实现相同的功能?
[解决办法]
使用下面的代码
GridCellElement cellElement = this.radGridView1.GridElement.GetCellElement(this.radGridView1.Rows[1], this.radGridView1.Columns[3]);
if (cellElement != null)
{
Point cellLocation = this.radGridView1.PointToScreen(cellElement.ControlBoundingRectangle.Location);
}