In the XamGrid, what is the best way to change the mouse cursor (to a hand) upon mouse-over cells in a particular column?
Elena,
Thanks for your reply. Could you please clarify in which grid event I can use to assign this event handler to the cellcontrol?
Hello Andy99,
I was looking into your question and I believe that depending on your specific scenario, different approaches may be more suitable for changing the mouse cursor. If the specific column you are referring is from type TemplatedColumn you can just set the Cursor property of the controls you use in the template. If this is not your case, I can suggest you handle the MouseEnder event for the CellControl and use the following code snippet:
void Control_MouseEnter(object sender, MouseEventArgs e)
{
if ((sender as CellControl).Column.Key == "Name")
this.Cursor = Cursors.Hand;
else
this.Cursor = Cursors.Arrow;
}
If you have any further questions on the matter, please do not hesitate to ask.