How to get PreProcessMessage to work?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've got my own class inherited from DataGrid.
Overriden OnMouseDown works fine, but PreProcessMessage does not seem to work:

public override bool PreProcessMessage(ref Message msg)
{
//return base.PreProcessMessage (ref msg);
return true;
}

I put break point at first line but it never gets there! What am I doing
wrong?

Thank you
 
extra info:

MyDataGrid is bound to a DataView based on DataTable extracted from database.
It has few text columns and one boolean column. (I don't define my own
columnstyles, all is done by default). Interesting, PreProcessMessage works
only for boolean column, but not for text columns.

Any ideas?
Thank you
 
Back
Top