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. I wanna retrieve value from the hidden column in datagrid in silverlight 4

I wanna retrieve value from the hidden column in datagrid in silverlight 4

Scheduled Pinned Locked Moved WPF
helpquestion
4 Posts 2 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.
  • M Offline
    M Offline
    mdrizwan_1
    wrote on last edited by
    #1

    Hello, I m in a bit trouble can any one please help me? I have added a DataGrid on a usercontrol page in silverlight 4.And bind it to an 'xyz' table. When i m updating the contents of the table , m passing the xyzId of selected row which is in hidden column. Now were the problem arises m unable to get the value , it returns empty string . Any help appreciated? Regards

    M 1 Reply Last reply
    0
    • M mdrizwan_1

      Hello, I m in a bit trouble can any one please help me? I have added a DataGrid on a usercontrol page in silverlight 4.And bind it to an 'xyz' table. When i m updating the contents of the table , m passing the xyzId of selected row which is in hidden column. Now were the problem arises m unable to get the value , it returns empty string . Any help appreciated? Regards

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You should NOT be working with the visual control when manipulating the data. You should be working with the underlying collection you have bound to the visual control.

      Never underestimate the power of human stupidity RAH

      M 2 Replies Last reply
      0
      • M Mycroft Holmes

        You should NOT be working with the visual control when manipulating the data. You should be working with the underlying collection you have bound to the visual control.

        Never underestimate the power of human stupidity RAH

        M Offline
        M Offline
        mdrizwan_1
        wrote on last edited by
        #3

        Hello Holmes, Thanks for your reply. I have bounded the datagrid Itemsource with service result. That's the problem. Can you provide an sample or link to know how to get this done?. Regards

        1 Reply Last reply
        0
        • M Mycroft Holmes

          You should NOT be working with the visual control when manipulating the data. You should be working with the underlying collection you have bound to the visual control.

          Never underestimate the power of human stupidity RAH

          M Offline
          M Offline
          mdrizwan_1
          wrote on last edited by
          #4

          Hello buddies, Solved it this way: clsXYZ _clsxyz= dgxyz.SelectedItem as clsXYZ; Regards

          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