|104409||Jul 17,2012 10:45 AM UTC||Jul 18,2012 05:41 AM UTC||WPF||1|
There is a strange behavior of the GridControl.
When I click on a cell, it is immediately highlighted (e.g. border of the cell is highlighted) then the cell click event is fired, no matter what I do, I cant get rid of it, any ideas?
Thank you for your update.
Yes, whenever you click on the any cell, the selection will be drawn immediately to set the current cell because without setting current cell prior to the Click event, you cannot access the current cell in the CellClick event of the GridControl. This is our default behavior.
Suppose, if you are interested to cancel the selection changes means, then you can achieve this by handling the SelectionChanging event of the GridControl.Model like shown below.
this.grid.Model.SelectionChanging += new GridSelectionChangingEventHandler(Model_SelectionChanging);
void Model_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
e.Cancel = true;
Please let us know if you have any queries.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.