开发者

DataGridView Current Cell border Highlight

开发者 https://www.devze.com 2023-01-15 06:47 出处:网络
I am using a data开发者_如何学Pythongridview with the selectionmode as full row select I am not able to find how to darken the border of the current cell.

I am using a data开发者_如何学Pythongridview with the selectionmode as full row select

I am not able to find how to darken the border of the current cell.

Can any body please help?

Thanks


Handle DataGridView MouseDown event

private void dataGridView_MouseDown(object sender, MouseEventArgs e)
{
     DataGridView.HitTestInfo info = dataGridView.HitTest(e.X, e.Y);
     cell = //..get from info
     cell.AdjustCellBorderStyle(..
}

This is just example from head, hope that works.

0

精彩评论

暂无评论...
验证码 换一张
取 消