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. Binding an Object to xamDataGrid

Binding an Object to xamDataGrid

Scheduled Pinned Locked Moved WPF
questionwpfwcfsysadminhelp
2 Posts 2 Posters 8 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.
  • J Offline
    J Offline
    Jammer 0
    wrote on last edited by
    #1

    Hi All, I'm a bit stuck on this and the Infragistics Documentation server has been down all weekend. Would it really hurt to had locally in PDF??? I'm doing this in a button click:

    private void btnScanDirectory_Click(object sender, RoutedEventArgs e)
    {
    object SingleDirectoryResults = SampleSort.DataLayer.ScanSingleDirectoryForFiles.ScanDirectories(@"G:\samples\");
    }

    SingleDirectoryResults is a generic list that implements IEnumerable, how do I go about setting this new dynamic object as the data source for the datagrid?

    L 1 Reply Last reply
    0
    • J Jammer 0

      Hi All, I'm a bit stuck on this and the Infragistics Documentation server has been down all weekend. Would it really hurt to had locally in PDF??? I'm doing this in a button click:

      private void btnScanDirectory_Click(object sender, RoutedEventArgs e)
      {
      object SingleDirectoryResults = SampleSort.DataLayer.ScanSingleDirectoryForFiles.ScanDirectories(@"G:\samples\");
      }

      SingleDirectoryResults is a generic list that implements IEnumerable, how do I go about setting this new dynamic object as the data source for the datagrid?

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

      Please have a look at this link on using the ObjectDataProvider in WPF. http://www.beacosta.com/blog/?p=22[^] You will bind your SingleDirectoryResults to the datagrid using the ObjectDataProvider.

      Cheers, Karl » CodeProject 2008 MVP My Blog | Mole's Home Page | How To Create Screen Capture Videos For Your Articles

      Just a grain of sand on the worlds beaches.

      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