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. Fetching DataGrid Columns Data [modified]

Fetching DataGrid Columns Data [modified]

Scheduled Pinned Locked Moved WPF
tutorialquestioncsharpcsshelp
2 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.
  • F Offline
    F Offline
    fasih1981
    wrote on last edited by
    #1

    Hi! My question is: How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column. Plz also guide me if my grid columns has controls (like "TextBlock" etc) then how to fetch data from such columns. Please help me with code and some description. Thanks in advance. M.Fasih

    fasih_is_my_signature

    modified on Monday, August 11, 2008 7:44 AM

    S 1 Reply Last reply
    0
    • F fasih1981

      Hi! My question is: How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column. Plz also guide me if my grid columns has controls (like "TextBlock" etc) then how to fetch data from such columns. Please help me with code and some description. Thanks in advance. M.Fasih

      fasih_is_my_signature

      modified on Monday, August 11, 2008 7:44 AM

      S Offline
      S Offline
      Syed Mehroz Alam
      wrote on last edited by
      #2

      fasih1981 wrote:

      How to get the columns data(values) of selected row in a datagrid of silverlight in C# code? My grid has multiple columns.I want to get the data of each column.

      You can get use the DataGrid.SelectedItem property in a way like:

      (dataGrid.SelectedItem as YourObject).AnyProperty

      I hope this[^] article that I posted today may help you as it presents a master-detail UI using DataGrids and ListBox. Regards, Syed Mehroz Alam

      My Articles

      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