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.
Unfortunately, activation email could not send to your email. Please try again.

edit - sort problem in 4.1.09 beta for NET 2.0

Thread ID:

Created:

Updated:

Platform:

Replies:

39359 Jan 5,2006 03:39 AM Jun 14,2006 06:32 AM Windows Forms 10
loading
Tags: GridControl
Uwe Wittig
Asked On January 5, 2006 03:39 AM

Hello, I use the GridDataboundGrid. When I edit a cell in an unsorted column all works fine. If I edit a cell in a sorted column and the new value causes resorting the new value will be duplicated in 2 rows (real row and position where row was previously sorted in) Any idea?

stanleyj [Syncfusion]
Replied On January 5, 2006 07:34 AM

Hi Uwe, Using VS2005 RTM, the problem in not seen. Are you using the same? Best regards, Stanley

Uwe Wittig
Replied On January 5, 2006 11:12 AM

Hi Stanley, I use 8.0.50727.42 RTM. I will wait for the final SyncFusion 4.1 version to test it again. If it doesn''t work then, I will post a simple example. Thanks, Uwe >Hi Uwe, > >Using VS2005 RTM, the problem in not seen. Are you using the same? > >Best regards, >Stanley

Administrator [Syncfusion]
Replied On June 8, 2006 05:55 PM

I''m seeing this behaviour in the latest 4.2 libraries. >Hi Stanley, > >I use 8.0.50727.42 RTM. >I will wait for the final SyncFusion 4.1 version to test it again. If it doesn''t work then, I will post a simple example. > >Thanks, >Uwe > >>Hi Uwe, >> >>Using VS2005 RTM, the problem in not seen. Are you using the same? >> >>Best regards, >>Stanley

Administrator [Syncfusion]
Replied On June 9, 2006 12:01 AM

Hi Mark, Setting the UseListChangedEvent property to true will avoid the mentioned issue. this.gridDataBoundGrid1.UseListChangedEvent = true; Regards, Calvin.

Mark Atkinson
Replied On June 12, 2006 02:44 PM

I''m still seeing the same issue. I should mention that my underlying DataView has the Sort value. Occasionally when I edit a field (where that field has the sort) and then click in the cell to the immediate right I get a message box that reads "Do not move the current position with this method" >Hi Mark, > >Setting the UseListChangedEvent property to true will avoid the mentioned issue. > >this.gridDataBoundGrid1.UseListChangedEvent = true; > >Regards, >Calvin.

Administrator [Syncfusion]
Replied On June 13, 2006 11:16 AM

Hi Mark, I am not able to reproduce the issue. Attached is a sample that works fine with a Sort value in the DataView. Can you please reproduce the issue in the attached sample and send it back so that we can get back with the solution at the earliest? Thanks, Calvin.

Sample01.zip

Mark Atkinson
Replied On June 13, 2006 12:51 PM

Thanks Calvin, I wasn''t able to reproduce the issue in the sample you gave me either but I have a better understanding of what was happening. In my grid I was doing some extra handling of the CurrentCellValidated event and, in that method, getting a hold of the underlying DataRowView and calling that object''s EndEdit method. This had the benefit of updating other controls with the new value (and some other things related to my application) but obviously has some adverse side effects when the bound DataView is sorted. Still, it would be nice to be able to EndEdit on the current cell so that, at that point (leaving the cell by clicking or tabbing into an adjacent cell) it''s possible to do some further manipulation on the updated DataView. I''ll look into what other events I might be able to tap into. If you have any thoughts or ideas, I''d love to hear them. Thanks, as always, for the response and excellent technical support. Being able to download samples and communicate like this is fantastic. Mark >Hi Mark, > >I am not able to reproduce the issue. Attached is a sample that works fine with a Sort value in the DataView. Can you please reproduce the issue in the attached sample and send it back so that we can get back with the solution at the earliest? > >Thanks, >Calvin. >

Sample01.zip

Mark Atkinson
Replied On June 13, 2006 01:15 PM

Calvin, Adding the method below to your sample will reproduce the issue. Just need to edit one of the sorted cells. void gridDataBoundGrid1_CurrentCellValidated (object sender, EventArgs e) { CurrencyManager cm = BindingContext[gridDataBoundGrid1.DataSource, gridDataBoundGrid1.DataMember] as CurrencyManager; DataView dv = cm.List as DataView; DataRowView drv = cm.Current as DataRowView; drv.EndEdit (); } >Hi Mark, > >I am not able to reproduce the issue. Attached is a sample that works fine with a Sort value in the DataView. Can you please reproduce the issue in the attached sample and send it back so that we can get back with the solution at the earliest? > >Thanks, >Calvin. >

Sample01.zip

Administrator [Syncfusion]
Replied On June 14, 2006 06:28 AM

Hi Mark, Try calling the this.gridDataBoundGrid1.Binder.EndEdit(); in the gridDataBoundGrid1.CurrentCellValidated event handler instead of calling the drv.EndEdit(), which will also update the underlying data source when a cell value is changed with out throwing any exception. Let us know if this helps. Regards, Calvin.

Administrator [Syncfusion]
Replied On June 14, 2006 06:32 AM

Hi Mark, Try calling the this.gridDataBoundGrid1.Binder.EndEdit(); in the gridDataBoundGrid1.CurrentCellAcceptedChanges event handler. Regards, Calvin.

CONFIRMATION

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.

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.

;