AD
Administrator
Syncfusion Team
April 19, 2004 10:00 PM UTC
Here is something to try.
In your formload, try setting
grid.CurrentCell.MovetTo(-1,-1);
This will make sure no cell is current when the grid first appears.
CS
Carl Schmdit
April 20, 2004 08:37 PM UTC
Well, I kind of got this to work for me.
The first thing I noticed was that the MoveTo method doesn''t seem to come up in the intellisense for VS.Net even though it exists as a valid method for gridDataBoundGrid1.CurrentCell. I am not too concerned about this unless it is indicative of a larger underlying root problem.
The second thing that occured to me is that I have a text field set to the 0 tabindex onload. When I set the griddataboundgrid to be the 0 index and change the MoveTo to point to a row other than the first, it works for the user to select the cell in the first row, change, and persist the change. It doesn''t work, however, if the MoveTo cell is -1,-1.
Obviously this isn''t ideal. It would definitely be preferable to have the form cursor start at the textfield. Any other ideas?
BTW, specifying -1,-1 seems to make cell 1,1 selected.
>Here is something to try.
>
>In your formload, try setting
>
>grid.CurrentCell.MovetTo(-1,-1);
>
>
>This will make sure no cell is current when the grid first appears.