in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Column with Dropdown duplicates value from row above

Last post 05-16-2008 1:42 PM by C1_DaveT. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-01-2008 10:16 AM

    • Matti1
    • Not Ranked
    • Joined on 05-19-2006
    • Posts 4

    Column with Dropdown duplicates value from row above

    I have a TDBGrid that has a dropdown attached. If I enter a value into the column with the dropdown by typing in the value (not selecting from the dropdown) and then move to the next line and type in a different value in the same field, everything is fine. However, if I select a value by clicking the dropdown arrow and clicking on the value I want, then move to the next line and type in a different value, after I move off the column the value reverts to the value of the row above. This will happen for multiple rows, they will all revert to the value of the original row that had a value selected from the dropdown. If I later select a new value via the dropdown, all later rows will duplicate to that.

     I can see in the BeforeColUpdate event that the value I typed in is indeed in the right place, in the new row. However in the AfterColUpdate event it is showing as reverted. I don't know where or why the change is  taking place.

    Can anyone PLEASE help. I have grids with dropdowns all over the place in my program.
     

    Filed under:
  • 05-16-2008 1:42 PM In reply to

    Re: Column with Dropdown duplicates value from row above

    Hi

     

    What is the version of C1TDBGrid, which you are using? I was not able to replicate the issue using the latest builds:

     

    .NET 2.0

    http://prerelease.componentone.com/dotnet20/c1truedbgrid/2008-t2/c1truedbgrid.2_2.0.20082.61135.zip

     

    .NET 1.X:

    http://prerelease.componentone.com/dotnet/c1truedbgrid/2008-t1/c1truedbgrid_1.4.20081.61122.zip

     

    Regards

    Dave

     

    <Matti1> wrote in message news:204480@10.0.1.98...

    I have a TDBGrid that has a dropdown attached. If I enter a value into the column with the dropdown by typing in the value (not selecting from the dropdown) and then move to the next line and type in a different value in the same field, everything is fine. However, if I select a value by clicking the dropdown arrow and clicking on the value I want, then move to the next line and type in a different value, after I move off the column the value reverts to the value of the row above. This will happen for multiple rows, they will all revert to the value of the original row that had a value selected from the dropdown. If I later select a new value via the dropdown, all later rows will duplicate to that.

     I can see in the BeforeColUpdate event that the value I typed in is indeed in the right place, in the new row. However in the AfterColUpdate event it is showing as reverted. I don't know where or why the change is  taking place.

    Can anyone PLEASE help. I have grids with dropdowns all over the place in my program.
     



    http://helpcentral.componentone.com/cs/forums/p/75127/204480.aspx#204480

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.