I have C1FlexGrid grid in windowform, then scroll down so that the lower half of the grid is shown, then click on a control outside the grid, then click on a line in the grid, the grid scrolls up to the top and the wrong row in the grid is selected. the grid scroll happens before the events fire. I want to stop autoscroll when grid get focus.
Any suggestions?
I figure out in our custom grid control inherited from C1FlexGrid has a method OnEnter
public class FAGrid : C1FlexGrid
{
public FAGrid();
//
protect override void OnEnter(EventArgs e)
{
this.Select(1,1);
base.OnEnter(e);
}
}
This is a cause of strange behavior. I removed OnEnter method, it works. Thank you.