Focus problem

Jul 18, 2009 at 7:35 PM

I create one sourcegrid in my application, it is strange that the first row is focused by default.

but I do not want it to be focused. however, I can not find one function to de-focus this.

simply, I do not want any row to be focused.

anyone give one hint?

thanks

Jul 20, 2009 at 6:53 AM

myGrid.Selection.ResetSelection(false);

Jul 20, 2009 at 7:21 PM

thanks, I have tried but it does not work for my case.

even I tried myGrid.Selection.SelectRow(1, false);

this row is still displayed as selection state. I do not know the reason.

strangely, if I display the same code in another form, this row is not displayed as selection state.

 

Jul 20, 2009 at 7:24 PM
crazy question, but did you try myGrid.Selection.SelectRow(0, false); ???
 
~D