首页  编辑  

DataGridView取得一项的显示区域

Tags: /C#/界面处理/DataGridView、DataGrid/   Date Created:

Rectangle vRectangle = dataGridView1 . GetCellDisplayRectangle(

   dataGridView1 . CurrentCell . ColumnIndex,

   dataGridView1 . CurrentCell . RowIndex, true );

Text = vRectangle . ToString();