I want to mark a DataGridViewCellEventArgs
as handled so that nothing downstream from it interferes with the way it was handled.
The DataGridViewCellEventArgs
class does not have a handled property, and neither does its base class.
The event that I am working with isCellMouseEnter
This is the base DataGridView
control that I am instantiating from:
public class DataGridViewWithFormatting : System.Windows.Forms.DataGridView
{
protected override void OnCellMouseEnter(DataGridViewCellEventArgs e)
{
base.OnCellMouseEnter(e);
this.Cursor = Cursors.Default;
}
}
This is the DataGridView
control that I am using in my form:
private CustomControls.DataGridViewWithFormatting dgvItems;
and...
dgvItems.CellMouseEnter += new EventHandler(dgvItems_CellMouseEnter);
then...
private void dgvItems_CellMouseEnter()
{
this.Cursor = Cursors.Hand;
}