Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. VS BS

VS BS

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpquestion
19 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P PIEBALDconsult

    Visual Studio 2010 says:

    Cannot implicitly convert type 'System.Data.DataRowView' to 'System.Data.IDataRecord'. An explicit conversion exists

    Really, VS? I've never seen one, MSDN doesn't list an explicit conversion. If you know of one, please show me. * * To clarify; this I ask of VS, not the denizens of the Lounge.

    Visual Studio 2010 says:

    Unable to cast object of type 'System.Data.DataView' to type 'System.Data.IDataRecord'.

    Yeah, I thought so, come back when you make up your mind. I think VS just always says there's an explicit conversion and crosses its fingers. It sure would be nice if DataRow and DataRowView implemented IDataRecord. :sigh: (And I had left off the rant icon.)

    N Offline
    N Offline
    Nareesh1
    wrote on last edited by
    #2

    PIEBALDconsult wrote:

    If you know of one, please show me.

    Is it a programming quesiton

    The Jurassic period produced such an abundance of lethal predators, that the oceans were a virtual STEW OF ASSASSINS - The history channel

    B P 2 Replies Last reply
    0
    • N Nareesh1

      PIEBALDconsult wrote:

      If you know of one, please show me.

      Is it a programming quesiton

      The Jurassic period produced such an abundance of lethal predators, that the oceans were a virtual STEW OF ASSASSINS - The history channel

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #3

      Nareesh1 wrote:

      Is it a programming quesiton

      Even that might qualify as one. :~

      No object is so beautiful that, under certain conditions, it will not look ugly. - Oscar Wilde

      1 Reply Last reply
      0
      • P PIEBALDconsult

        Visual Studio 2010 says:

        Cannot implicitly convert type 'System.Data.DataRowView' to 'System.Data.IDataRecord'. An explicit conversion exists

        Really, VS? I've never seen one, MSDN doesn't list an explicit conversion. If you know of one, please show me. * * To clarify; this I ask of VS, not the denizens of the Lounge.

        Visual Studio 2010 says:

        Unable to cast object of type 'System.Data.DataView' to type 'System.Data.IDataRecord'.

        Yeah, I thought so, come back when you make up your mind. I think VS just always says there's an explicit conversion and crosses its fingers. It sure would be nice if DataRow and DataRowView implemented IDataRecord. :sigh: (And I had left off the rant icon.)

        B Offline
        B Offline
        BillWoodruff
        wrote on last edited by
        #4

        [^] Thank you for using CodeProject's QA forum where we understand your fingers are tired. And, really, why should you have to suffer the imposition of actually going to look for information yourself when you can come here, post an error message, and get sprayed with a refreshing spritzer of links one of which might actually have some relevance to your error message ? Looking forward to your next errors. :) Cordially, BW

        «OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

        P A 2 Replies Last reply
        0
        • P PIEBALDconsult

          Visual Studio 2010 says:

          Cannot implicitly convert type 'System.Data.DataRowView' to 'System.Data.IDataRecord'. An explicit conversion exists

          Really, VS? I've never seen one, MSDN doesn't list an explicit conversion. If you know of one, please show me. * * To clarify; this I ask of VS, not the denizens of the Lounge.

          Visual Studio 2010 says:

          Unable to cast object of type 'System.Data.DataView' to type 'System.Data.IDataRecord'.

          Yeah, I thought so, come back when you make up your mind. I think VS just always says there's an explicit conversion and crosses its fingers. It sure would be nice if DataRow and DataRowView implemented IDataRecord. :sigh: (And I had left off the rant icon.)

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #5

          object herp = (object) myDataRowView;
          IDataRecord derp = (IDataRecord)herp;

          :rolleyes:

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

          P 1 Reply Last reply
          0
          • D Dan Neely

            object herp = (object) myDataRowView;
            IDataRecord derp = (IDataRecord)herp;

            :rolleyes:

            Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #6

            Pfft, I wrote, IDataRecord derp = (IDataRecord) myDataRowView;, knowing full well that it would fail, just to call VS' bluff.

            1 Reply Last reply
            0
            • B BillWoodruff

              [^] Thank you for using CodeProject's QA forum where we understand your fingers are tired. And, really, why should you have to suffer the imposition of actually going to look for information yourself when you can come here, post an error message, and get sprayed with a refreshing spritzer of links one of which might actually have some relevance to your error message ? Looking forward to your next errors. :) Cordially, BW

              «OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #7

              You should have signed that SAK.

              B 1 Reply Last reply
              0
              • N Nareesh1

                PIEBALDconsult wrote:

                If you know of one, please show me.

                Is it a programming quesiton

                The Jurassic period produced such an abundance of lethal predators, that the oceans were a virtual STEW OF ASSASSINS - The history channel

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #8

                Only a rhetorical one.

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  Visual Studio 2010 says:

                  Cannot implicitly convert type 'System.Data.DataRowView' to 'System.Data.IDataRecord'. An explicit conversion exists

                  Really, VS? I've never seen one, MSDN doesn't list an explicit conversion. If you know of one, please show me. * * To clarify; this I ask of VS, not the denizens of the Lounge.

                  Visual Studio 2010 says:

                  Unable to cast object of type 'System.Data.DataView' to type 'System.Data.IDataRecord'.

                  Yeah, I thought so, come back when you make up your mind. I think VS just always says there's an explicit conversion and crosses its fingers. It sure would be nice if DataRow and DataRowView implemented IDataRecord. :sigh: (And I had left off the rant icon.)

                  A Offline
                  A Offline
                  Agent__007
                  wrote on last edited by
                  #9

                  PIEBALDconsult wrote:

                  I've never seen one. If you know of one, please show me.

                  Here you go: 1 :rolleyes: Ok, I am outta here..

                  Your time will come, if you let it be right.

                  P 1 Reply Last reply
                  0
                  • B BillWoodruff

                    [^] Thank you for using CodeProject's QA forum where we understand your fingers are tired. And, really, why should you have to suffer the imposition of actually going to look for information yourself when you can come here, post an error message, and get sprayed with a refreshing spritzer of links one of which might actually have some relevance to your error message ? Looking forward to your next errors. :) Cordially, BW

                    «OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

                    A Offline
                    A Offline
                    Agent__007
                    wrote on last edited by
                    #10

                    :thumbsup:

                    Your time will come, if you let it be right.

                    1 Reply Last reply
                    0
                    • A Agent__007

                      PIEBALDconsult wrote:

                      I've never seen one. If you know of one, please show me.

                      Here you go: 1 :rolleyes: Ok, I am outta here..

                      Your time will come, if you let it be right.

                      P Offline
                      P Offline
                      PIEBALDconsult
                      wrote on last edited by
                      #11

                      No no, you're number 1.

                      OriginalGriffO 1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        You should have signed that SAK.

                        B Offline
                        B Offline
                        BillWoodruff
                        wrote on last edited by
                        #12

                        My father told me it was best to rattle the bars of a tiger's cage from the outside, rather than the inside, of the cage. :) cheers, Bill

                        «OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

                        G 1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          No no, you're number 1.

                          OriginalGriffO Offline
                          OriginalGriffO Offline
                          OriginalGriff
                          wrote on last edited by
                          #13

                          He is not a number, he is a free man!

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                          W 1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            He is not a number, he is a free man!

                            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                            W Offline
                            W Offline
                            WiganLatics
                            wrote on last edited by
                            #14

                            That's what they want you to think...

                            A 1 Reply Last reply
                            0
                            • W WiganLatics

                              That's what they want you to think...

                              A Offline
                              A Offline
                              Agent__007
                              wrote on last edited by
                              #15

                              Ok, I have no idea what's going on here.. :sigh: Or maybe I am too "innocent" to understand this.. :-O

                              Your time will come, if you let it be right.

                              W OriginalGriffO 2 Replies Last reply
                              0
                              • A Agent__007

                                Ok, I have no idea what's going on here.. :sigh: Or maybe I am too "innocent" to understand this.. :-O

                                Your time will come, if you let it be right.

                                W Offline
                                W Offline
                                WiganLatics
                                wrote on last edited by
                                #16

                                Precisely... ;)

                                1 Reply Last reply
                                0
                                • A Agent__007

                                  Ok, I have no idea what's going on here.. :sigh: Or maybe I am too "innocent" to understand this.. :-O

                                  Your time will come, if you let it be right.

                                  OriginalGriffO Offline
                                  OriginalGriffO Offline
                                  OriginalGriff
                                  wrote on last edited by
                                  #17

                                  Or possibly, just too young[^] :sigh:

                                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                  A 1 Reply Last reply
                                  0
                                  • B BillWoodruff

                                    My father told me it was best to rattle the bars of a tiger's cage from the outside, rather than the inside, of the cage. :) cheers, Bill

                                    «OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

                                    G Offline
                                    G Offline
                                    Gary Wheeler
                                    wrote on last edited by
                                    #18

                                    'Tis best to argue with the 800-pound gorilla in the room via the telephone.

                                    Software Zen: delete this;

                                    1 Reply Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      Or possibly, just too young[^] :sigh:

                                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                      A Offline
                                      A Offline
                                      Agent__007
                                      wrote on last edited by
                                      #19

                                      29 September 1967 – 1 February 1968? Well, it's not that old you know, only about 23 years after that I was born.. :laugh: Sorry, I should't be pointing this out to you, should I?

                                      Your time will come, if you let it be right.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups