I have a databound grid where I would like end users to be able to edit values in one of the columns. This works in the form I created except when the user selects the first row. When selecting the first row after the form has loaded, they can type their new value in but when they click on another cell to edit, the value they entered reverts back to the original value. This only happens in the first row and only right after the form has loaded. If they edit another cell first and then go to the first row it is fine.
Any ideas? I am using gidboundcolumns.
ADAdministrator Syncfusion Team April 19, 2004 05:00 PM
Here is something to try.
In your formload, try setting
This will make sure no cell is current when the grid first appears.
CSCarl SchmditApril 20, 2004 03:37 PM
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
>This will make sure no cell is current when the grid first appears.