Setting different Cursor on CellHover

0
0

Is it possible to set a different Cursor when hovering specific Cells?

Tried the following which doesn’t work.


private void dataGrid_MouseHover(object sender, EventArgs e)
{
DataGridViewColumn column = dataGrid.CurrentCell.OwningColumn;
if (column == dataGrid.Columns["Customer"])
{
if(dataGrid.Cursor != Cursors.Hand)
dataGrid.Cursor = Cursors.Hand;
}
else
{
if (dataGrid.Cursor == Cursors.Hand)
dataGrid.Cursor = DefaultCursor;
}
}

 

Best regards

Corvin

  • You must to post comments
0
0

Hi Corvin,

WJ-8643 is fixed in dev build 1.4.59.

Best regards
Frank

  • You must to post comments
0
0

Hi Corvin,

thanks for reporting that issue. It´s logged as WJ-8643, fixed and will be included in the next release.

Will inform you when it´s available.

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.