In the XamGrid, what is the best way to change the mouse cursor (to a hand) upon mouse-over cells in a particular column?
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.
hey thans in advance, my question is that how can i set this method to the perticuler column where i have used multicolumn listview so column name which is ID is in other xml and i want to change the curser in the column which is in the listview so please help me
you can mail me on ankita.patel@acmatix.com ..pleaze help!