Thursday, May 7, 2009

Get location of CurrentCell in DataGridView

want to manipulate the colors of DataGridViewCell's rectangle?
use this code to getthe rectangle


DataGridViewCell cc = this.dataGridView1.CurrentCell;
Rectangle rect = this.dataGridView1.GetCellDisplayRectangle(cc.ColumnIndex,
cc.RowIndex, true);

0 תגובות:

Post a Comment

 
Home | About | Link | Link
Simple Proff Blogger Template Created By Herro | Inspiring By Busy Bee Woo Themes