How to?

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

    How to?

    Release row from a table?

    DataRow row = Table.Rows[0].Copy? Clone?
  • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

    #2
    RE: How to?



    "Jacek Jurkowski" wrote:
    Release row from a table?
    >
    DataRow row = Table.Rows[0].Copy? Clone?
    Table.Rows.Remo ve(Table.Rows[0]) or Table.Rows.Remo veAt(0)?

    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: How to?

      Note that this will remove the row from the collection, and it will not
      be processed if passed to a data adapter.

      If you want the effect of marking the row for delete and having the data
      adapter deleting the row in the underlying data source, then you should call
      the Delete method on the DataRow itself.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m

      "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comwrot e in
      message news:14A3B2CB-390B-4F75-8BC8-B5028D007207@mi crosoft.com...
      >
      >
      "Jacek Jurkowski" wrote:
      >
      >Release row from a table?
      >>
      >DataRow row = Table.Rows[0].Copy? Clone?
      >
      Table.Rows.Remo ve(Table.Rows[0]) or Table.Rows.Remo veAt(0)?
      >

      Comment

      • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

        #4
        Re: How to?



        "Nicholas Paldino [.NET/C# MVP]" wrote:
        Note that this will remove the row from the collection, and it will not
        be processed if passed to a data adapter.
        >
        If you want the effect of marking the row for delete and having the data
        adapter deleting the row in the underlying data source, then you should call
        the Delete method on the DataRow itself.
        >
        >
        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m
        >
        "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comwrot e in
        message news:14A3B2CB-390B-4F75-8BC8-B5028D007207@mi crosoft.com...


        "Jacek Jurkowski" wrote:
        Release row from a table?
        >
        DataRow row = Table.Rows[0].Copy? Clone?
        Table.Rows.Remo ve(Table.Rows[0]) or Table.Rows.Remo veAt(0)?
        >
        >
        Good point. I wasn't even sure if I had the question interpreted correctly
        though...
        >

        Comment

        • Ignacio Machin \( .NET/ C# MVP \)

          #5
          Re: How to?

          Hi,



          --
          Ignacio Machin
          The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

          Mobile & warehouse Solutions.
          >
          Good point. I wasn't even sure if I had the question interpreted
          correctly
          though...
          I still do not understand it :)


          Comment

          • Jacek Jurkowski

            #6
            Re: How to?

            The problem is that with Remove() row looses its data ...
            I want to get a row (with data) from one table and add
            it into another table ...

            "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comwrot e in
            message news:14A3B2CB-390B-4F75-8BC8-B5028D007207@mi crosoft.com...
            >
            >
            "Jacek Jurkowski" wrote:
            >
            >Release row from a table?
            >>
            >DataRow row = Table.Rows[0].Copy? Clone?
            >
            Table.Rows.Remo ve(Table.Rows[0]) or Table.Rows.Remo veAt(0)?
            >

            Comment

            • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

              #7
              Re: How to?

              I have only ever itterated over the items in a row, and stored them to a row
              in the other table that was created there. The chances of two tables being
              identical is remote, so the matching up of fields would be done by your code.

              "Jacek Jurkowski" wrote:
              The problem is that with Remove() row looses its data ...
              I want to get a row (with data) from one table and add
              it into another table ...
              >
              "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comwrot e in
              message news:14A3B2CB-390B-4F75-8BC8-B5028D007207@mi crosoft.com...


              "Jacek Jurkowski" wrote:
              Release row from a table?
              >
              DataRow row = Table.Rows[0].Copy? Clone?
              Table.Rows.Remo ve(Table.Rows[0]) or Table.Rows.Remo veAt(0)?
              >

              Comment

              Working...