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. General Programming
  3. WPF
  4. WPF Datagrid itemsource:This works but is it the best way ? plz [modified]

WPF Datagrid itemsource:This works but is it the best way ? plz [modified]

Scheduled Pinned Locked Moved WPF
csharpwpfcsswcfquestion
10 Posts 3 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 Offline
    P Offline
    prubyholl
    wrote on last edited by
    #1

    DataTable dt = con.Fromdbase("Select * from DailyTrans"); dg.ItemsSource = (System.Collections.IEnumerable)dt.DefaultView; dg is the WPF Datagrid plz the above code works fine in my WPF c# app but i want to know weda this is the best way of setting the data location for a grid dynamically i rely don want to use the item binding..cos i want more control Thanks

    modified on Sunday, August 23, 2009 12:07 PM

    C 1 Reply Last reply
    0
    • P prubyholl

      DataTable dt = con.Fromdbase("Select * from DailyTrans"); dg.ItemsSource = (System.Collections.IEnumerable)dt.DefaultView; dg is the WPF Datagrid plz the above code works fine in my WPF c# app but i want to know weda this is the best way of setting the data location for a grid dynamically i rely don want to use the item binding..cos i want more control Thanks

      modified on Sunday, August 23, 2009 12:07 PM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      prubyholl wrote:

      weda

      prubyholl wrote:

      i rely don

      This makes you look like a retard. There are 101 keys on your keyboard. Use them.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      P 1 Reply Last reply
      0
      • C Christian Graus

        prubyholl wrote:

        weda

        prubyholl wrote:

        i rely don

        This makes you look like a retard. There are 101 keys on your keyboard. Use them.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        P Offline
        P Offline
        prubyholl
        wrote on last edited by
        #3

        wow..wot a way to answer a genuine question. thanks for wasting you time typing... some codes are not optimized and would require much more processor time than others though not significant for humans to realise but it can surely be seen in very large db programs thats wy i asked if any one could help comment..weda its the best maybe i should have added 'Optimized' and i guess 'u answered ####quite#### well'

        C 1 Reply Last reply
        0
        • P prubyholl

          wow..wot a way to answer a genuine question. thanks for wasting you time typing... some codes are not optimized and would require much more processor time than others though not significant for humans to realise but it can surely be seen in very large db programs thats wy i asked if any one could help comment..weda its the best maybe i should have added 'Optimized' and i guess 'u answered ####quite#### well'

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          prubyholl wrote:

          wot a way

          prubyholl wrote:

          weda its the best

          I didn't see anything wrong with your code, but, again, this sort of txt speak when you have a full keyboard in front of you, makes you look stupid. It has a real impact in if people will decide you're worth trying to help.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          P 1 Reply Last reply
          0
          • C Christian Graus

            prubyholl wrote:

            wot a way

            prubyholl wrote:

            weda its the best

            I didn't see anything wrong with your code, but, again, this sort of txt speak when you have a full keyboard in front of you, makes you look stupid. It has a real impact in if people will decide you're worth trying to help.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            P Offline
            P Offline
            prubyholl
            wrote on last edited by
            #5

            Alright..... At last u have answered me now.. though i still don see wots wrong in tryna find da most optimized way of doing things..i just don get my faults here. and your tone-am sure thats how u were brought up.

            C 1 Reply Last reply
            0
            • P prubyholl

              Alright..... At last u have answered me now.. though i still don see wots wrong in tryna find da most optimized way of doing things..i just don get my faults here. and your tone-am sure thats how u were brought up.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              prubyholl wrote:

              though i still don see wots wrong in tryna find da most optimized way

              I'm sorry, the more you talk like that, the more I think you're a moron. There's a standard of professional conduct that does not include txt speak. This is fine for your 14 year old girlfriend. Not fine for posting in professional forums.

              prubyholl wrote:

              am sure thats how u were brought up.

              Yes, I was brought up to uphold standards of behaviour, and not pander to the lowest common denominator. By all means, talk like a retard. You'll notice I'm the only person who answered you. I'd like you to at least consider that if you spoke like a grown up, you might get more replies and people wouldn't write you off as a script kiddie.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              P 1 Reply Last reply
              0
              • C Christian Graus

                prubyholl wrote:

                though i still don see wots wrong in tryna find da most optimized way

                I'm sorry, the more you talk like that, the more I think you're a moron. There's a standard of professional conduct that does not include txt speak. This is fine for your 14 year old girlfriend. Not fine for posting in professional forums.

                prubyholl wrote:

                am sure thats how u were brought up.

                Yes, I was brought up to uphold standards of behaviour, and not pander to the lowest common denominator. By all means, talk like a retard. You'll notice I'm the only person who answered you. I'd like you to at least consider that if you spoke like a grown up, you might get more replies and people wouldn't write you off as a script kiddie.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

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

                i cannot believe this.. alright whatever man...

                P 1 Reply Last reply
                0
                • P prubyholl

                  i cannot believe this.. alright whatever man...

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

                  Oh i didnt know u were 40 years and you talked like that .. Frustration must be killing you. Anyway thanks for letting me know am not supposed to use txt here.

                  L 1 Reply Last reply
                  0
                  • P prubyholl

                    Oh i didnt know u were 40 years and you talked like that .. Frustration must be killing you. Anyway thanks for letting me know am not supposed to use txt here.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    Wow! You finally got the message! You may care to note that many people who use these forums do not have English as their first language. So when they see statements like "plz u help me weda it wrk" think that is how to write their questions. The result being much frustration for them as nobody can understand what they are talking about. You may like to re-read the forum guidelines again on how to phrase your questions properly.

                    P 1 Reply Last reply
                    0
                    • L Lost User

                      Wow! You finally got the message! You may care to note that many people who use these forums do not have English as their first language. So when they see statements like "plz u help me weda it wrk" think that is how to write their questions. The result being much frustration for them as nobody can understand what they are talking about. You may like to re-read the forum guidelines again on how to phrase your questions properly.

                      P Offline
                      P Offline
                      prubyholl
                      wrote on last edited by
                      #10

                      Yes thanks i did get it though i did not like the correctional facilities here.

                      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