I've noticed a peculiar bug in the DataGridTextBoxColumn. If you use ctrl-c to copy text out of a cell, the entire cell rather than the highlighted text is copied.
Also, if you change the text of the cell and then copy it, you'll notice that the original text of the cell is what it copied, not the current text of the cell.
This problem does not occur with ctrl-x. Only the highlighted text is cut and pasted.
This problem does not occur if you right click on the highlighted text and select copy from the context menu.
It almost seems like the DataGrid control rather than the DataGridTextBox control is receiving the 0x301 windows message in WndProc.
Does anyone have an idea on how to solve this bug? I realize that I will most likely have to the inherit the DataGrid or DataGridTextBox classes to reroute the windows messages but I don't even really know what I am looking for or were to look for it.
Would the mistake manifest itself in ProcessMessage, PreProcessMessage, ProcessKeyPreview, WndProc... ?
How do I determine which control is receiving the 0x301 message and reacting to it by placing the text on the windows clipboard?
Thank you for any suggestions!
Also, if you change the text of the cell and then copy it, you'll notice that the original text of the cell is what it copied, not the current text of the cell.
This problem does not occur with ctrl-x. Only the highlighted text is cut and pasted.
This problem does not occur if you right click on the highlighted text and select copy from the context menu.
It almost seems like the DataGrid control rather than the DataGridTextBox control is receiving the 0x301 windows message in WndProc.
Does anyone have an idea on how to solve this bug? I realize that I will most likely have to the inherit the DataGrid or DataGridTextBox classes to reroute the windows messages but I don't even really know what I am looking for or were to look for it.
Would the mistake manifest itself in ProcessMessage, PreProcessMessage, ProcessKeyPreview, WndProc... ?
How do I determine which control is receiving the 0x301 message and reacting to it by placing the text on the windows clipboard?
Thank you for any suggestions!