Forcing a datagrid row to commit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pmcguire

    Forcing a datagrid row to commit

    How do I force the Commit event to fire on a datagrid?
    --
    Pat
  • pmcguire

    #2
    RE: Forcing a datagrid row to commit

    Sorry, I suppose it is not the ColumnStyle.Com mit event that I need.
    Basically, I think I need to do a BindingManagerB ase.EndCurrentE dit on the
    current row in the datagrid. How do I do it?

    Thanks,
    --
    Pat


    "pmcguire" wrote:
    [color=blue]
    > How do I force the Commit event to fire on a datagrid?
    > --
    > Pat[/color]

    Comment

    • Cor Ligthert

      #3
      Re: Forcing a datagrid row to commit

      Pat,

      Seriously, what is the reason that you ask it. The moment that you do an
      update is mostly soon enough.

      Cor


      Comment

      • pmcguire

        #4
        Re: Forcing a datagrid row to commit

        Yes, you would think so wouldn't you?
        I have a UserControl with a datagrid on it. It displays child records for
        the UserControl's BindingContext. When there are no child records and the
        user creates one by editing the New Record row in the datagrid, and then
        navigates away from the parent record, the new child record does not get
        retained. This problem does not happen if a child record already exists, or
        if the user first navigates away from the new child record within the
        datagrid (by moving to the next row), and THEN navigates to a different
        parent record.

        What is going on?

        Thanks,

        --
        Pat


        "Cor Ligthert" wrote:
        [color=blue]
        > Pat,
        >
        > Seriously, what is the reason that you ask it. The moment that you do an
        > update is mostly soon enough.
        >
        > Cor
        >
        >
        >[/color]

        Comment

        • Cor Ligthert

          #5
          Re: Forcing a datagrid row to commit

          Pat,

          Do you real think that you can get this kind of help from a newsgroup.
          Involved are:
          a usercontrol
          a resource
          databinding
          datarelations
          more tables
          a special way of handling by you.

          Sorry I don't think at least that this in the way you give the problem to us
          it is for me to complex to give a serious answer.

          Cor


          Comment

          • pmcguire

            #6
            Re: Forcing a datagrid row to commit

            Sure Cor, I could give MUCH more detail. How likely would that have been to
            elicit any response whatever?

            I will post as much of the code for the UserControl as you think necessary
            or are interested in seeing.

            Clearly you understand the complexity of the situation; I thought my
            question might jog the memory of someone who had experienced similar problems
            and that might lead ME to a solution. To me, a newsgroup seems a very good
            place to start.

            --
            Pat


            "Cor Ligthert" wrote:
            [color=blue]
            > Pat,
            >
            > Do you real think that you can get this kind of help from a newsgroup.
            > Involved are:
            > a usercontrol
            > a resource
            > databinding
            > datarelations
            > more tables
            > a special way of handling by you.
            >
            > Sorry I don't think at least that this in the way you give the problem to us
            > it is for me to complex to give a serious answer.
            >
            > Cor
            >
            >
            >[/color]

            Comment

            • Cor Ligthert

              #7
              Re: Forcing a datagrid row to commit

              Pat,

              This kind of situations did me decide that when I use a datagrid not to use
              the standard addrow. However to create buttons for this kind of things, what
              can I say more?

              Cor


              Comment

              • pmcguire

                #8
                Re: Forcing a datagrid row to commit

                Yes, I think I've decided the same thing.

                Thanks,

                --
                Pat


                "Cor Ligthert" wrote:
                [color=blue]
                > Pat,
                >
                > This kind of situations did me decide that when I use a datagrid not to use
                > the standard addrow. However to create buttons for this kind of things, what
                > can I say more?
                >
                > Cor
                >
                >
                >[/color]

                Comment

                Working...