We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trouble editing first row in gridboundcolumn

Thread ID:





13042 Apr 19,2004 01:48 PM UTC Apr 20,2004 08:37 PM UTC WinForms 2
Tags: GridControl
Carl Schmdit
Asked On April 19, 2004 01:48 PM UTC

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.

Administrator [Syncfusion]
Replied On 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.

Carl Schmdit
Replied On 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon